From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lucio De Re To: 9fans@cse.psu.edu Subject: Re: [9fans] logout from cpu server Message-ID: <20030725103100.N28024@cackle.proxima.alt.za> References: <737224cc03679161c17186da82a8e768@granite.cias.osakafu-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <737224cc03679161c17186da82a8e768@granite.cias.osakafu-u.ac.jp>; from okamoto@granite.cias.osakafu-u.ac.jp on Fri, Jul 25, 2003 at 05:20:08PM +0900 Date: Fri, 25 Jul 2003 10:31:01 +0200 Topicbox-Message-UUID: 0360e5a0-eacc-11e9-9e20-41e7f4b1d025 On Fri, Jul 25, 2003 at 05:20:08PM +0900, okamoto@granite.cias.osakafu-u.ac.jp wrote: > > > i don't remember that at all. what did it/i do? > > make change to console of cpu server to logout from it. > It was for Release 3 Plan 9 I remember. > The pass() function that does the prompting is still in /sys/src/cmd/init.c, but the call seems to have vanished. I guess I best look in old sources for it... Here is what it used to look like: for(;;){ if(iscpu){ consctl = open("#c/consctl", OWRITE); key = open("#c/key", OREAD); if(consctl<0 || key<0 || write(consctl, "rawon", 5) != 5) print("init: can't check password; insecure\n"); else{ pass(key); write(consctl, "rawoff", 6); } close(consctl); close(key); } print("\ninit: starting /bin/rc\n"); fexec(rcexec); manual = 1; cmd = 0; sleep(1000); } And here is the new one: for(;;){ print("\ninit: starting /bin/rc\n"); fexec(rcexec); manual = 1; cmd = 0; sleep(1000); } I always regretted losing this bit. ++L