From 373493d3d8478cf5e5c2936df986dd0c046213e3 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 13 Jun 2003 21:52:17 +0000 Subject: initlog, usernetctl, and ppp-watch fixes () --- src/ppp-watch.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ppp-watch.c') diff --git a/src/ppp-watch.c b/src/ppp-watch.c index e383694c..8d947b9d 100644 --- a/src/ppp-watch.c +++ b/src/ppp-watch.c @@ -162,6 +162,9 @@ detach(char *device) { * of the pppd process to its parent (i.e., it reads nothing). */ close (pipeArray[0]); + /* Don't leak this into programs we call. */ + fcntl(pipeArray[1], F_SETFD, FD_CLOEXEC); + /* Redirect stdio to /dev/null. */ fd = open("/dev/null", O_RDONLY); dup2(fd, STDIN_FILENO); -- cgit