Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 May 1998 16:17:53 -0700 (PDT)
From:      Brian Somers <brian@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
Message-ID:  <199805282317.QAA20077@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805282317.QAA20077>