aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-04-06 23:03:19 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-04-06 23:03:19 +0300
commit0bf9a2285ed423cd5ce1b958e02775bdcd65ea25 (patch)
treefbe5191c44034518f4312468924f6e37d7f988cf
parent58274f943df237ee608da8849969739c365dd664 (diff)
downloadlibmicrohttpd-0bf9a2285ed423cd5ce1b958e02775bdcd65ea25.tar.gz
libmicrohttpd-0bf9a2285ed423cd5ce1b958e02775bdcd65ea25.zip
zzuf tests: make compatible with *BSD by replacing obsoleted setpgrp() with setpgid().
-rw-r--r--ChangeLog3
-rw-r--r--src/testzzuf/socat.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index daa20f3c..12dedf7b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
1Thu Apr 06 23:02:07 MSK 2017
2 Make zzuf tests compatible with *BSD platforms. -EG
3
1Thu Apr 06 22:14:22 MSK 2017 4Thu Apr 06 22:14:22 MSK 2017
2 Added warning for hypothetical extra large timeout. 5 Added warning for hypothetical extra large timeout.
3 Fixed incorrect timeout calculation under extra rare conditions. 6 Fixed incorrect timeout calculation under extra rare conditions.
diff --git a/src/testzzuf/socat.c b/src/testzzuf/socat.c
index d2826b2c..3daa54a5 100644
--- a/src/testzzuf/socat.c
+++ b/src/testzzuf/socat.c
@@ -88,7 +88,7 @@ zzuf_socat_start ()
88 } 88 }
89 return; 89 return;
90 } 90 }
91 setpgrp (); 91 setpgid (0, 0);
92 execvp ("zzuf", args); 92 execvp ("zzuf", args);
93 fprintf (stderr, "execution of `zzuf' failed: %s\n", strerror (errno)); 93 fprintf (stderr, "execution of `zzuf' failed: %s\n", strerror (errno));
94 zzuf_pid = 0; /* fork failed */ 94 zzuf_pid = 0; /* fork failed */