From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] logout from cpu server From: okamoto@granite.cias.osakafu-u.ac.jp In-Reply-To: <20030725103100.N28024@cackle.proxima.alt.za> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Date: Fri, 25 Jul 2003 18:12:25 +0900 Content-Transfer-Encoding: quoted-printable Topicbox-Message-UUID: 03a64f78-eacc-11e9-9e20-41e7f4b1d025 > Here is what it used to look like: >=20 > for(;;){ > if(iscpu){ > consctl =3D open("#c/consctl", OWRITE); > key =3D open("#c/key", OREAD); > if(consctl<0 || key<0 || write(consctl, "rawon", 5) !=3D 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 =3D 1; > cmd =3D 0; > sleep(1000); > } >=20 > And here is the new one: >=20 > for(;;){ > print("\ninit: starting /bin/rc\n"); > fexec(rcexec); > manual =3D 1; > cmd =3D 0; > sleep(1000); > } I tried this, and failed. =E2=98=BA The error messages are as follows: peridotite# Ctl-d init: rc exit status: rc 106: false init: can't check password; insecure init: starting /bin/rc peridotite# Hmm... Once again I'm seeing the cpu server's prompt!, even if I did not enter the right password! Kenji