summaryrefslogtreecommitdiffstats
path: root/contrib/sendmail/libsm/debug.c
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2014-01-26 22:49:24 +0000
committerjilles <jilles@FreeBSD.org>2014-01-26 22:49:24 +0000
commit631dcff5854868ecf95268f05bcd279ddaa4a5fb (patch)
tree28775373bb278ff01fa6de4fa0f841d005abb657 /contrib/sendmail/libsm/debug.c
parent9b565c0250634c44a36639e518e7ca3ba7a88ebd (diff)
downloadFreeBSD-src-631dcff5854868ecf95268f05bcd279ddaa4a5fb.zip
FreeBSD-src-631dcff5854868ecf95268f05bcd279ddaa4a5fb.tar.gz
login: Clean up PAM and audit, then exit, on SIGHUP and SIGTERM.
This avoids leaving stale entries in utmpx after the connection is closed on an open login session. It also allows a clean way (SIGTERM) to forcibly terminate a user's terminal session. This does not affect the situation for "hung" processes after the connection is closed. The foreground process group receives SIGHUP and the tty becomes inaccessible. Also replace all use of the obsolete signal() function with sigaction() (not only the part where it is actually required: SIGHUP and SIGTERM must mask the other as well when caught). PR: misc/183495 Reviewed by: ed
Diffstat (limited to 'contrib/sendmail/libsm/debug.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud