Cleaning wtmp entries when SIGTERM is received.

Senthil Kumar senthilkumar_sen at
Tue Apr 26 17:28:04 EST 2005

Hi ,

I also tried passing signal SIGTERM to the privileged sshd process once the 
session is obtained. This leaves impurities in wtmp entries and I think 
there is no SIGTERM handler for sshd. This shows the user as "still logged 
in" even after logout. What will be the effect if we have the handler for 
this signal? Will it break anywhere?

When I tried this with rlogin program, it handled the SIGTERM and cleared 
the wtmp entries.

Senthil Kumar.

----- Original Message ----- 
From: "Logu" <logsnaath at>
To: "OpenSSH Devel List" <openssh-unix-dev at>
Sent: Monday, April 25, 2005 5:25 PM
Subject: Cleaning wtmp entries when SIGTERM is received.

> Hi,
> Is there a reason for not cleaning up wtmp entries when a SIGTERM is 
> received for a user session.
> -Logu
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at

More information about the openssh-unix-dev mailing list