libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 0bf9a2285ed423cd5ce1b958e02775bdcd65ea25
parent 58274f943df237ee608da8849969739c365dd664
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Thu,  6 Apr 2017 23:03:19 +0300

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

Diffstat:
MChangeLog | 3+++
Msrc/testzzuf/socat.c | 2+-
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog @@ -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. diff --git a/src/testzzuf/socat.c b/src/testzzuf/socat.c @@ -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 */