🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs.2bsd
Article #8

fix to init

#8
From: sri-unixsjk
Date: Sun, 13 Dec 1981 15:20
19 lines
689 bytes
This fix insures that the line discipline is reset upon logout, some folks
may not wish to find themselves in the new tty driver by default.   scott

/usr/src/cmd/init.c:
3a4,5
> #include <whoami.h>
> #include <sgtty.h>
271c273
< 
---
> 	int ldisc;
284a287,288
> 		ldisc = 0;
> 		ioctl(0, TIOCSETD, &ldisc);


PS - I've used different pathnames than those on the distribution tape since
     I don't have the tape handy to check them and I've shuffled things around
     here.
Technical Details
Message-ID: <anews.Asri-unix.214>
Path: arc1-ca.pugleaf.net!utzoo!decvax!ucbvax!menlo70!sri-unix!sjk

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!decvax!ucbvax!menlo70!sri-unix!sjk
From: sri-unix!sjk
Newsgroups: net.bugs.2bsd
Subject: fix to init
Date: Sun, 13 Dec 1981 15:20:24 +0000
Message-ID: <anews.Asri-unix.214>