diff options
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/socket.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libsylph/socket.c b/libsylph/socket.c index a3ad08b4..da6d9fdc 100644 --- a/libsylph/socket.c +++ b/libsylph/socket.c @@ -1145,9 +1145,10 @@ static gint sock_kill_process(pid_t pid) while (ret == (pid_t)-1) { if ((ret = waitpid(pid, NULL, 0)) != pid) { - perror("sock_kill_process(): waitpid"); - if (ret == (pid_t)-1 && errno != EINTR) + if (ret == (pid_t)-1 && errno != EINTR) { + perror("sock_kill_process(): waitpid"); break; + } } } |