[3563] in testers
Re: No account reversion on dropped connection
daemon@ATHENA.MIT.EDU (Greg Hudson)
Tue Jun 9 13:39:30 1998
Date: Tue, 9 Jun 1998 13:39:25 -0400
From: Greg Hudson <ghudson@MIT.EDU>
To: Greg Hudson <ghudson@MIT.EDU>
Cc: Greg Hudson <ghudson@MIT.EDU>, testers@MIT.EDU
In-Reply-To: "[3556] in testers"
> Well, the parent process which does cleanup is getting a SIGHUP. It
> doesn't get a SIGHUP if you revert 1.18 (rbasch's patch to not call
> both setsid() and setpgrp()). Time to figure out what's going on, I
> guess.
The parent process also gets a SIGHUP under IRIX (6.3, anyway,
presumably also on 6.2), even if you revert 1.18 and even if the
foreground process group at session-closing time is not the shell. I
also confirmed that the setsid() call is failing.
The more I think about this, the more I think that the login parent
process needs to just ignore SIGHUP, and not try to dissociate itself
from the controlling tty. It is, after all, the session leader, and
there's no sense in creating an orphaned session.