From 0bf9a2285ed423cd5ce1b958e02775bdcd65ea25 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Thu, 6 Apr 2017 23:03:19 +0300 Subject: [PATCH] zzuf tests: make compatible with *BSD by replacing obsoleted setpgrp() with setpgid(). --- ChangeLog | 3 +++ src/testzzuf/socat.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index daa20f3c..12dedf7b 100644 --- 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 index d2826b2c..3daa54a5 100644 --- 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 */