Commit 97e431d6 by Michael Pastushkov

fix

parent d30d6aa5
...@@ -349,8 +349,8 @@ int udp_fork(struct sockaddr_in client_addr) { ...@@ -349,8 +349,8 @@ int udp_fork(struct sockaddr_in client_addr) {
} }
add_udp_client(client_addr, child_pid); add_udp_client(client_addr, child_pid);
while (waitpid(-1, NULL, WNOHANG) > 0) // while (waitpid(-1, NULL, WNOHANG) > 0)
; /* Reap any zombie processes (clients that exited) */ // ; /* Reap any zombie processes (clients that exited) */
} else { } else {
printf("existing udp client %s, hanled by %d ...\n", inet_ntoa(client_addr.sin_addr), clients[client_index].pid); printf("existing udp client %s, hanled by %d ...\n", inet_ntoa(client_addr.sin_addr), clients[client_index].pid);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment