From owner-cvs-all Thu May 28 16:23:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA22243 for cvs-all-outgoing; Thu, 28 May 1998 16:23:38 -0700 (PDT) (envelope-from owner-cvs-all@FreeBSD.ORG) 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 QAA22236; Thu, 28 May 1998 16:23:35 -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 QAA20077; Thu, 28 May 1998 16:17:53 -0700 (PDT) Date: Thu, 28 May 1998 16:17:53 -0700 (PDT) Message-Id: <199805282317.QAA20077@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 bundle.h chat.c defs.h log.c main.c modem.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk brian 1998/05/28 16:17:53 PDT Modified files: usr.sbin/ppp bundle.c bundle.h chat.c defs.h log.c main.c modem.c Log: o #define the name "tun" in defs.h against the future possibility of supporting architectures with different device names. o Close /dev/tunX when destroying the bundle. o Don't forget to close the parent end of the pipe in the child process when exec'ing a program from a chat script. o If we close our controlling terminal, ditch the current session with it, allowing getty(8) (or whatever) to regain control. o After transferring our controlling terminal descriptor to another ppp instance, we now fork a new ppp to continue where we left off, transferring ownership of all uucp locks and the /var/run/tunX.pid file. Meanwhile the parent closes all file descriptors, defaults all signals and does a pause() to wait for a HUP after the transferred descriptor is finally closed. We don't run /bin/cat any more (again!). Suggested by: bde TODO: It seems clocal devices need their pause()d session leader to be given a manual HUP, as closing the last open descriptor doesn't do the job. Revision Changes Path 1.10 +149 -86 src/usr.sbin/ppp/bundle.c 1.4 +2 -1 src/usr.sbin/ppp/bundle.h 1.47 +2 -2 src/usr.sbin/ppp/chat.c 1.31 +3 -3 src/usr.sbin/ppp/defs.h 1.29 +4 -3 src/usr.sbin/ppp/log.c 1.127 +2 -19 src/usr.sbin/ppp/main.c 1.87 +8 -3 src/usr.sbin/ppp/modem.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message