File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ prepend() { # Usage: cmd 2>&1 | prepend "sometext "
3434
3535kill_servers () {
3636 if [ $( check_process_running $OPENSSL_SERVER_PID ) = " 0" ]; then
37- (kill -9 $OPENSSL_SERVER_PID ) > /dev/null 2>&1
37+ (kill -9 $OPENSSL_SERVER_PID ) & > /dev/null
3838 fi
3939}
4040
@@ -149,7 +149,7 @@ start_openssl_server() { # usage: start_openssl_server [extraArgs]
149149 -cert $CERT_DIR /server-cert.pem -key $CERT_DIR /server-key.pem \
150150 -dcert $CERT_DIR /server-ecc.pem -dkey $CERT_DIR /ecc-key.pem \
151151 -accept $OPENSSL_PORT $OPENSSL_ALL_CIPHERS \
152- 2>&1 | prepend " [server] " >> $LOG_FILE &
152+ 2>&1 | prepend " [server] " & >> $LOG_FILE &
153153 OPENSSL_SERVER_PID=$(( $! - 1 ))
154154
155155 sleep 0.1
@@ -170,15 +170,15 @@ do_client() { # usage: do_client [extraArgs]
170170 -cipher $CIPHER $TLS_VERSION \
171171 -connect localhost:$OPENSSL_PORT \
172172 -curves $CURVES \
173- 2>&1 | prepend " [client] " >> $LOG_FILE
173+ 2>&1 | prepend " [client] " & >> $LOG_FILE
174174 )
175175 else
176176 (echo -n | \
177177 stdbuf -oL -eL $OPENSSL_BIN s_client $1 \
178178 -ciphersuites $CIPHER $TLS_VERSION \
179179 -connect localhost:$OPENSSL_PORT \
180180 -curves $CURVES \
181- 2>&1 | prepend " [client] " >> $LOG_FILE
181+ 2>&1 | prepend " [client] " & >> $LOG_FILE
182182 )
183183 fi
184184 if [ " $? " = " 0" ]; then
You can’t perform that action at this time.
0 commit comments