[Lutz.Jaenicke at aet.TU-Cottbus.DE: 2.9p1: HP-UX 10.20 utmp/wtmp handling broken?]

Lutz Jaenicke Lutz.Jaenicke at aet.TU-Cottbus.DE
Thu Jun 21 23:12:15 EST 2001


On Thu, Jun 21, 2001 at 05:43:26AM +0200, Markus Friedl wrote:
> On Wed, Jun 20, 2001 at 06:08:45PM +0200, Lutz Jaenicke wrote:
> > Following the code in session.c, session_close_by_channel with
> > s->pid != 0 will "notify child, delay session cleanup".
> > However, session_close() is never called (it would be seen due to
> >  debug("session_close: session %d pid %d", s->self, s->pid))
> > and therefore it seems that session_pty_cleanup(s) (finally calling
> > the record_logout() function) is never called.
> 
> i see, there are more changes in current.
> 
> could you please try current?

Ok, the CVS mirror has now been updated including the patch :-)
It does not work, though :-(
The "famous last words" are:
debug1: fd 7 setting O_NONBLOCK
debug2: fd 3 is O_NONBLOCK
debug2: callback done
Connection closed by remote host.
debug1: channel_free: channel 0: server-session, nchannels 1
debug3: channel_free: status: The following connections are open:
  #0 server-session (t4 r0 i1/0 o16/0 fd 7/3)

debug1: channel_free: channel 0: dettaching channel user
debug1: session_by_channel: session 0 channel 0
debug1: session_close_by_channel: channel 0 kill 28025
debug3: channel_close_fds: channel 0: r 7 w 3 e -1
Closing connection to 127.0.0.1

When the connection is closed, the child (in this case 27921) will be
killed from session_close_by_channel() with either TERM or HUP.
However, session_close(), which is responsible for recording the logout,
is not called.

Best regards,
	Lutz
-- 
Lutz Jaenicke                             Lutz.Jaenicke at aet.TU-Cottbus.DE
BTU Cottbus               http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik                  Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus              Fax. +49 355 69-4153



More information about the openssh-unix-dev mailing list