From: Todd C. Miller Date: Thu, 3 Feb 2011 14:52:28 +0000 (-0500) Subject: Made tcsetpgrp() bits conditional on HAVE_TCSETPGRP X-Git-Tag: SUDO_1_7_5~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8600fb751857f23887be6c1d8f9774d9ad30559;p=sudo Made tcsetpgrp() bits conditional on HAVE_TCSETPGRP --HG-- branch : 1.7 --- diff --git a/exec.c b/exec.c index bc577e3b4..80aac24d5 100644 --- a/exec.c +++ b/exec.c @@ -499,6 +499,7 @@ handle_signals(fd, child, cstat) } else #endif { +#ifdef HAVE_TCSETPGRP if (signo == SIGCONT) { /* * Before continuing the child, make it the foreground @@ -511,6 +512,7 @@ handle_signals(fd, child, cstat) close(fd); } } +#endif /* Nothing listening on sv[0], send directly. */ if (kill(child, signo) != 0) warning("kill(%d, %d)", child, signo);