3.2.3p1 on OpenServer

Carson Gaspar carson at taltos.org
Sun May 26 04:47:26 EST 2002


--On Saturday, May 25, 2002 8:39 PM +0200 Markus Friedl 
<markus at openbsd.org> wrote:

> On Sat, May 25, 2002 at 02:20:35PM -0400, Carson Gaspar wrote:
>> If OpenSSH is going to call setsid(), it must then open whatever
>> terminal  is going to be used (and then dup the fd to 0,1,2).
>
> setsid() also interacts with setlogin() so OpenSSH is
> calling setsid() for pty-less sessions for more then 2 years.

setlogin() is apparantly some BSDism. Of course, if you're having a 
pty-less session, you don't have to set a controlling terminal, so you can 
just call setsid(). But for pty-full sessions, my advice holds (at least 
across POSIX systems).

-- 
Carson




More information about the openssh-unix-dev mailing list