diff options
author | Sami Kerola | 2014-01-21 23:05:05 +0100 |
---|---|---|
committer | Karel Zak | 2014-02-10 18:25:31 +0100 |
commit | 404fa3f93c00c7e130f5a0ec963b2dc6a3743986 (patch) | |
tree | 35d64216dd7d675e5260454b93147afa4eb7e84f /sys-utils/setpriv.c | |
parent | hexdump: add highlighting support (diff) | |
download | kernel-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