9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Lucio De Re <lucio@proxima.alt.za>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] logout from cpu server
Date: Fri, 25 Jul 2003 10:31:01 +0200	[thread overview]
Message-ID: <20030725103100.N28024@cackle.proxima.alt.za> (raw)
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

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



  parent reply	other threads:[~2003-07-25  8:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-25  8:02 okamoto
2003-07-25  8:19 ` C H Forsyth
2003-07-25  8:20   ` okamoto
2003-07-25  8:24     ` Charles Forsyth
2003-07-25  8:31     ` Lucio De Re [this message]
2003-07-25  9:12       ` okamoto
2003-07-25  9:38         ` Lucio De Re
2003-07-26  0:37           ` David Presotto
2003-07-26  3:29             ` boyd, rounin
2003-07-25  8:26 ` Fco.J.Ballesteros
2003-07-25  8:30   ` okamoto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030725103100.N28024@cackle.proxima.alt.za \
    --to=lucio@proxima.alt.za \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).