aboutsummaryrefslogtreecommitdiff
path: root/src/testzzuf/socat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testzzuf/socat.c')
-rw-r--r--src/testzzuf/socat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testzzuf/socat.c b/src/testzzuf/socat.c
index 3daa54a5..b21f2c6f 100644
--- a/src/testzzuf/socat.c
+++ b/src/testzzuf/socat.c
@@ -73,7 +73,7 @@ zzuf_socat_start ()
73 } 73 }
74 if (zzuf_pid != 0) 74 if (zzuf_pid != 0)
75 { 75 {
76 sleep (1); /* allow zzuf and socat to start */ 76 (void)sleep (1); /* allow zzuf and socat to start */
77 status = 0; 77 status = 0;
78 if (0 < waitpid (zzuf_pid, &status, WNOHANG)) 78 if (0 < waitpid (zzuf_pid, &status, WNOHANG))
79 { 79 {
@@ -106,7 +106,7 @@ zzuf_socat_stop ()
106 fprintf (stderr, "Failed to killpg: %s\n", strerror (errno)); 106 fprintf (stderr, "Failed to killpg: %s\n", strerror (errno));
107 kill (zzuf_pid, SIGINT); 107 kill (zzuf_pid, SIGINT);
108 waitpid (zzuf_pid, &status, 0); 108 waitpid (zzuf_pid, &status, 0);
109 sleep (1); /* allow socat to also die in peace */ 109 (void)sleep (1); /* allow socat to also die in peace */
110 } 110 }
111} 111}
112 112