[7734] in SIPB bug reports
Re: zlogoutd doesn't die on logout
daemon@ATHENA.MIT.EDU (Chris Laas)
Tue Mar 6 11:23:28 2001
Message-Id: <200103061622.LAA19785@melbourne-city-street.MIT.EDU>
Date: Tue, 6 Mar 2001 16:22:48 +0000 ( )
From: Chris Laas <golem@MIT.EDU>
Reply-To: golem@MIT.EDU
To: zacheiss@MIT.EDU
cc: bug-sipb@MIT.EDU
In-Reply-To: <200103061616.LAA02682@riff-raff.mit.edu>
MIME-Version: 1.0
Content-Type: TEXT/plain; CHARSET=US-ASCII
This is a known problem which has been happening (with Omri, at least)
since the beginning. However, I've never been able to reproduce it
myself and so can't debug it. zlogoutd does in fact die in response to
HUP:
#ifdef _POSIX_VERSION
(void) sigemptyset(&sa.sa_mask);
sa.sa_flags = 0;
sa.sa_handler = cleanup;
(void) sigaction(SIGINT, &sa, (struct sigaction *)0);
(void) sigaction(SIGTERM, &sa, (struct sigaction *)0);
(void) sigaction(SIGHUP, &sa, (struct sigaction *)0);
#else
(void) signal(SIGINT, cleanup);
(void) signal(SIGTERM, cleanup);
(void) signal(SIGHUP, cleanup);
#endif
If you can reproduce it, by all means, let me know so I can figure out
what's going on.
--Chris
On 6 Mar, Garry Zacheiss wrote:
> I've noticed on office heads and just now on the two OLC dialups
> that "zlogoutd" isn't dying when users log out; if the user happens to
> be in the password file, or if cleanup never runs, then the processes
> stick around forever.
>
> I assume the problem is the process failing to die when
> receiving a HUP, but haven't looked into it extensively.
>
> Garry
--
In crossing a heath, suppose I pitched my foot against a stone, and
were asked how the stone came to be there; I might possibly answer,
that, for anything I knew to the contrary, it had lain there for ever:
nor would it perhaps be very easy to show the absurdity of this
answer. But suppose I had found a watch upon the ground, and it
should be inquired how the watch happened to be in that place; I
should hardly think of the answer which I had before given, that for
anything I knew, the watch might have always been there.
-- William Paley
______________________________________________________________________
Chris Laas: KB1DEM \ golem@mit.edu (617)225-6522 \ EC, Hayden 507, MIT