From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from aardvark.cogent.ca ([207.112.34.98]) by hawkwind.utcs.toronto.edu with SMTP id <24950>; Fri, 28 Apr 2000 16:33:30 -0400 Received: from sam (sam [192.168.3.20]) by aardvark.cogent.ca (8.9.3/8.8.7) with SMTP id PAA30351 for ; Fri, 28 Apr 2000 15:04:54 -0400 Message-ID: <002701bfb144$78ca9ca0$1403a8c0@cogent.ca> From: "Sam Roberts" To: "rc" References: <20000427165605.22504.qmail@g.bio.cse.psu.edu> <4.3.1.2.20000428085436.00b3c4e0@mailhost.ocegr.fr> Subject: Re: rc not session leader? Date: Fri, 28 Apr 2000 15:03:42 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 > >Also, I can't call 'login' from an rc shell, strangely, it > >complains about not being session leader. I'm quite baffled. >=20 > What kind of OS are you using? I can use "login" under solaris and=20 > freebsd without any problems. Russ Cox also tells me that login works fine under his system. I kind of expected that rc was working fine everywhere else. ............. And in the process of gathering the ps outputs to post here, I just figured it out. Duh. login has to be *execed*, not forked/and execed. So login is a builtin shell alias for "exec login" in QNX's korn shell, so login gets execed by the shell, the session leader and is happy. I was trying to run login, so login was being execed by a forked child of rc, NOT the session leader, and it was failing. fn login { exec builtin login $* } seems appropriate here... Thanks! Sam