README: add link for automatic readme display
[sudo-osx-update.git] / patches / 0012-Allow-without-iologdir-configure-option-to-build.patch.txt
blob7bb3a4424714f2ce92dcfbde4913047521476e85
1 Subject: [PATCH] Allow --without-iologdir configure option to build
2  successfully
4 ---
5  exec.c | 4 ++--
6  1 file changed, 2 insertions(+), 2 deletions(-)
8 diff --git a/exec.c b/exec.c
9 index 47c106dd..2268c6cb 100644
10 --- a/exec.c
11 +++ b/exec.c
12 @@ -79,12 +79,12 @@ struct sigforward {
13  };
14  TQ_DECLARE(sigforward)
15  static struct sigforward_list sigfwd_list;
16 -static pid_t ppgrp = -1;
17  static void forward_signals __P((int fd));
18  static void schedule_signal __P((int signo));
19  static int log_io;
20  #endif /* _PATH_SUDO_IO_LOGDIR */
22 +static pid_t ppgrp = -1;
23  volatile pid_t cmnd_pid = -1;
25  static int handle_signals __P((int sv[2], pid_t child,
26 @@ -593,8 +593,8 @@ handle_signals(sv, child, cstat)
27                          * the child upon resume, potentially stopping sudo
28                          * with SIGTTOU while the command continues to run.
29                          */
30 -#ifdef HAVE_TCSETPGRP
31                         sigaction_t sa, osa;
32 +#ifdef HAVE_TCSETPGRP
33                         pid_t saved_pgrp = (pid_t)-1;
34                         int signo = WSTOPSIG(status);
35                         int fd = open(_PATH_TTY, O_RDWR|O_NOCTTY, 0);
36 -- 
37 1.8.3