HardenedBSD src tree
Go to file
Rich Murphey 76a4cb22c6 Slattach ported from 1.1.5 plus Bruce Evans suggested fix (close
FDs and fork before redialing) to prevent dialer from hanging with
newer sio.c.

Also moved history from the source to the cvs log (here) per
David G's suggestion.

This compiles but needs testing now...  Rich

/*
 * Hacks to support "-a|c|n" flags on the command line which enable VJ
 * header compresion and disable ICMP.
 * If this is good all rights go to B & L Jolitz, otherwise send your
 * comments to Reagan (/dev/null).
 *
 * nerd@percival.rain.com (Michael Galassi) 92.09.03
 *
 * Hacked to change from sgtty to POSIX termio style serial line control
 * and added flag to enable cts/rts style flow control.
 *
 * blymn@awadi.com.au (Brett Lymn) 93.04.04
 *
 * Put slattach in it's own process group so it can't be killed
 * accidentally. Close the connection on SIGHUP and SIGINT. Write a
 * syslog entry upon opening and closing the connection.  Rich Murphey
 * and Brad Huntting.
 *
 * Add '-r command' option: runs 'command' upon recieving SIGHUP
 * resulting from loss of carrier.  Log any errors after forking.
 * Rich 8/13/93
 *
 * This version of slattach includes many changes by David Greenman, Brian
 * Smith, Chris Bradley, and me (Michael Galassi).  None of them are
 * represented as functional anywhere outside of RAINet though they do work
 * for us.  Documentation is limited to the usage message for now.  If you
 * make improovments please pass them back.
 *
 * Added '-u UCMD' which runs 'UCMD <old> <new>' whenever the slip
 * unit number changes where <old> and <new> are the old and new unit
 * numbers, respectively.  Also added the '-z' option which forces
 * invocation of the redial command (-r CMD) upon startup regardless
 * of whether the com driver claims (sometimes mistakenly) that
 * carrier is present. Also added '-e ECMD' which runs ECMD before
 * exiting.
 *
 * marc@escargot.rain.com (Marc Frajola) 93/09/10
 *
 * Minor fixes to allow passive SLIP links to work (connections with
 * modem control that do not have an associated dial command). Added
 * code to re-check for carrier after dial command has been executed.
 * Added SIGTERM handler to properly handle normal kill signals. Fixed
 * bug in logic that caused message about no -u command to be logged
 * even when -u was specified and the sl number changes. Tried to get
 * rid of redundant syslog()'s to minimize console log output. Improved
 * logging of improper command line options or number of command
 * arguments. Removed spurious newline characters from syslog() calls.
 *
 * gjung@gjbsd.franken.de
 *
 * sighup_handler changed to set CLOCAL before running redial_cmd.
 * added flag exiting, so exit_handler is not run twice.  Fork
 * before reopening tty.
 */
1994-08-23 08:07:17 +00:00
bin Touch init.c after making it in case mkinit refused to touch it after not 1994-08-21 10:44:51 +00:00
eBones
etc Add sample (empty) fbtab file. Anyone is welcome to add additional 1994-08-22 20:00:39 +00:00
gnu Added -f to rm so install doesn't abort if the file doesn't exist. 1994-08-20 06:28:37 +00:00
include Changed idempotent strings to reflect directory area. 1994-08-21 04:05:05 +00:00
lib Remove dead code. gmon stuff is now done better in libc/gmon an 1994-08-22 15:13:41 +00:00
libexec Add back atrun 1994-08-23 03:10:47 +00:00
sbin Slattach ported from 1.1.5 plus Bruce Evans suggested fix (close 1994-08-23 08:07:17 +00:00
secure Fix afterinstall rule for generating links to the real libcrypt 1994-08-20 18:16:57 +00:00
share pc3r russian koi8-r syscons console added 1994-08-22 20:07:56 +00:00
sys Ran ft.c through ident. 1994-08-23 07:52:29 +00:00
tools/regression/usr.bin/sed
usr.bin gcpp has ceased to exist - point to the right place. 1994-08-23 03:52:40 +00:00
usr.sbin Oops...forgot to list the changes.... 1994-08-18 05:15:26 +00:00
CVS-INFO
Makefile - turn NOCRYPT off 1994-08-20 21:34:59 +00:00
TODO Add my desire for XPG-style message catalogs to the TODO list. 1994-08-21 17:53:06 +00:00