diff options
author | joerg <joerg@FreeBSD.org> | 1995-03-12 15:04:18 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1995-03-12 15:04:18 +0000 |
commit | c019fd724050c5fc25f122d1877ff762b9cef597 (patch) | |
tree | fcdea8e5823515e77c4dd86f7cfc35fc661c9faa /sbin/slattach/slattach.8 | |
parent | db2028940b5b3b6722f6cce89408024bd71a039a (diff) | |
download | FreeBSD-src-c019fd724050c5fc25f122d1877ff762b9cef597.zip FreeBSD-src-c019fd724050c5fc25f122d1877ff762b9cef597.tar.gz |
Make slattach create a PID file under /var/run when the connection is
established. This way, automatic scripts are possible that might
control the SLIP connection. It's unacceptable for a daemon that's
being controlled by a variety of signals to not leave its PID
somewhere. The file name contains the terminal path name component of
the associated tty device, so it should be unique even with multiple
parallel slattach's running. The file will be unlinked at regular exit.
Also found a minor bug in the option handling by compiling with -Wall.
Diffstat (limited to 'sbin/slattach/slattach.8')
-rw-r--r-- | sbin/slattach/slattach.8 | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sbin/slattach/slattach.8 b/sbin/slattach/slattach.8 index f346824..f3b8182 100644 --- a/sbin/slattach/slattach.8 +++ b/sbin/slattach/slattach.8 @@ -31,7 +31,7 @@ .\" .\" @(#)slattach.8 6.4 (Berkeley) 3/16/91 .\" -.\" $Header: /a/cvs/386BSD/src/sbin/slattach/slattach.8,v 1.6 1993/09/15 21:18:07 jkh Exp $ +.\" $Header: /home/ncvs/src/sbin/slattach/slattach.8,v 1.3 1994/08/23 08:28:31 rich Exp $ .\" .Dd April 4, 1993 .Dt SLATTACH 8 @@ -167,6 +167,17 @@ logs failure to set the controlling terminal or failure to install signal handlers. Upon connection and redial the ttyname and baud rate are logged and on shutdown the ttyname is logged. .Pp +.Sh FILES +.Pa /var/run/slattach.<tty>.pid , +.Pp +with +.Aq tty +replaced by the terminal path name component of +.Ar ttyname . +This file contains the numerical process ID of the +.Nm slattach +process and can be examined by scripts in oder to send a signal to +.Nm slattch . .Sh SEE ALSO .Xr netstat 1 , .Xr netintro 4 , |