From owner-cvs-usrsbin Fri May 1 12:24:42 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA05049 for cvs-usrsbin-outgoing; Fri, 1 May 1998 12:24:42 -0700 (PDT) (envelope-from owner-cvs-usrsbin) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA04996; Fri, 1 May 1998 12:24:30 -0700 (PDT) (envelope-from brian@FreeBSD.org) From: Brian Somers Received: (from brian@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id MAA16136; Fri, 1 May 1998 12:22:26 -0700 (PDT) Date: Fri, 1 May 1998 12:22:26 -0700 (PDT) Message-Id: <199805011922.MAA16136@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-usrsbin@FreeBSD.ORG Subject: cvs commit: src/usr.sbin/ppp bundle.c chat.c command.c modem.c physical.c physical.h Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk brian 1998/05/01 12:22:25 PDT Modified files: (Branch: MP) usr.sbin/ppp bundle.c chat.c command.c modem.c physical.c physical.h Log: o Explicitly set the close-on-exec flag of descriptor 3 before exec()ing. Tidy up file dups in general prior to exec(). This prevents our tun device (fd 3) from staying open (and configured) despite handing off all it's links and exiting (because ``cat'' holds it open). o Don't bother SIG_DFL'ing signals before exec() as they're already trapped with specific handlers and will be handled correctly by the exec. o Use values from paths.h for "/dev/" and "/dev/tty". o Don't assert() in physical.c. Revision Changes Path 1.1.2.67 +2 -1 src/usr.sbin/ppp/Attic/bundle.c 1.44.2.28 +11 -19 src/usr.sbin/ppp/chat.c 1.131.2.76 +4 -7 src/usr.sbin/ppp/command.c 1.77.2.62 +5 -3 src/usr.sbin/ppp/modem.c 1.1.2.29 +2 -14 src/usr.sbin/ppp/Attic/physical.c 1.1.2.23 +1 -2 src/usr.sbin/ppp/Attic/physical.h