From: Todd C. Miller Date: Thu, 5 Apr 2012 16:59:26 +0000 (-0400) Subject: Make this compile after last change. X-Git-Tag: SUDO_1_8_5~1^2~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2311fed457a12af52f58e2ddc130ec7eef64e986;p=sudo Make this compile after last change. --- diff --git a/src/exec_pty.c b/src/exec_pty.c index e301d97f5..21d975ce2 100644 --- a/src/exec_pty.c +++ b/src/exec_pty.c @@ -104,6 +104,7 @@ static void sigwinch(int s); static void sync_ttysize(int src, int dst); static void deliver_signal(pid_t pid, int signo); static int safe_close(int fd); +static void check_foreground(void); /* * Cleanup hook for error()/errorx() @@ -115,7 +116,7 @@ cleanup(int gotsignal) if (!tq_empty(&io_plugins) && io_fds[SFD_USERTTY] != -1) { check_foreground(); - if (foreground) { + if (foreground) term_restore(io_fds[SFD_USERTTY], 0); } #ifdef HAVE_SELINUX