summaryrefslogtreecommitdiffstats
path: root/sys-utils/setpriv.c
diff options
context:
space:
mode:
authorSami Kerola2014-01-21 23:05:05 +0100
committerKarel Zak2014-02-10 18:25:31 +0100
commit404fa3f93c00c7e130f5a0ec963b2dc6a3743986 (patch)
tree35d64216dd7d675e5260454b93147afa4eb7e84f /sys-utils/setpriv.c
parenthexdump: add highlighting support (diff)
downloadkernel-qcow2-util-linux-404fa3f93c00c7e130f5a0ec963b2dc6a3743986.tar.gz
kernel-qcow2-util-linux-404fa3f93c00c7e130f5a0ec963b2dc6a3743986.tar.xz
kernel-qcow2-util-linux-404fa3f93c00c7e130f5a0ec963b2dc6a3743986.zip
last: make session gone determination more robust
Earlier determination that used kill with signal zero to pid was prone to false positive reports, due reuse of pid space and unrelated processes. New function is_phantom() tries do a little bit better job, but fails to be perfect. It seems linking to gether utmp session start time or terminal id with /proc/<pid>/ information is not as simple as one might hope. Reported-by: Karel Zak <kzak@redhat.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/setpriv.c')
0 files changed, 0 insertions, 0 deletions