test_net_socket/heart_beat.sh
@@ -7,8 +7,8 @@ } function start_server() { clean ./heart_beat server 8 & server_pid=$! ./heart_beat server 101 & server_pid=$! echo "start server pid ${server_pid}" } @@ -16,7 +16,7 @@ for (( i=0; i<$PROCESSES; i++ )) do # pid_arr[$i]=$i ./heart_beat client 8 & pid_arr[$i]=$! ./heart_beat client 101 & pid_arr[$i]=$! echo "start ${pid_arr[$i]}" done } @@ -26,8 +26,9 @@ do echo "kill ${pid_arr[$i]}" kill -9 ${pid_arr[$i]} #./heart_beat client 8 & ${pid_arr[$i]}=$! #./heart_beat client 101 & ${pid_arr[$i]}=$! done ipcrm -a }