]> granicus.if.org Git - sudo/commitdiff
Made tcsetpgrp() bits conditional on HAVE_TCSETPGRP
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 3 Feb 2011 14:52:28 +0000 (09:52 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 3 Feb 2011 14:52:28 +0000 (09:52 -0500)
--HG--
branch : 1.7

exec.c

diff --git a/exec.c b/exec.c
index bc577e3b417e748766b709cd0714554d6d4879fb..80aac24d51736d67b31de1cd3bdbf946428c47ad 100644 (file)
--- 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);