zzuf tests: make compatible with *BSD by replacing obsoleted setpgrp() with setpgid().

This commit is contained in:
Evgeny Grin (Karlson2k)
2017-04-06 23:03:19 +03:00
parent 58274f943d
commit 0bf9a2285e
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -1,3 +1,6 @@
Thu Apr 06 23:02:07 MSK 2017
Make zzuf tests compatible with *BSD platforms. -EG
Thu Apr 06 22:14:22 MSK 2017
Added warning for hypothetical extra large timeout.
Fixed incorrect timeout calculation under extra rare conditions.
+1 -1
View File
@@ -88,7 +88,7 @@ zzuf_socat_start ()
}
return;
}
setpgrp ();
setpgid (0, 0);
execvp ("zzuf", args);
fprintf (stderr, "execution of `zzuf' failed: %s\n", strerror (errno));
zzuf_pid = 0; /* fork failed */