Cleaning wtmp entries when SIGTERM is received.

Senthil Kumar senthilkumar_sen at hotpop.com
Fri Apr 29 00:39:21 EST 2005


>>> Logu wrote:

> I tried it on linux also with openssh-3.9p1. When privilege separation is 
> disabled the last command output shows
>    logu     pts/1        172.16.1.20      Wed Apr 27 19:29    gone - no 
> logout
>

In HP-UX with privilegeseparation disabled, when SIGTERM is passed to user 
sshd process, it exits without trying to cleanup wtmp entries as it did with 
Priv sep yes. The tusc output in this case is given below.

( Attached to process 8770 ("sshd: pom at pts/0") [32-bit] )
select(12, 0x40024898, 0x40025398, NULL, NULL) 
.......................................... [sleeping]
  Received signal 15, SIGTERM, in select(), [SIG_DFL], no siginfo
select(12, 0x40024898, 0x40025398, NULL, NULL) 
.......................................... [entry]
exit(15) [implicit (select failure)] 
.................................................... WIFSIGNALED(SIGTERM)

Thanks,
Senthil Kumar. 





More information about the openssh-unix-dev mailing list