summaryrefslogtreecommitdiffstats
path: root/include/c.h
diff options
context:
space:
mode:
authorSami Kerola2014-04-24 00:32:11 +0200
committerSami Kerola2014-05-04 12:42:03 +0200
commit0e5218acd9ee73b0042489addf202a9b3cf799ed (patch)
treec6ce4b019bf046fb5f38db33854433cdff7f5a67 /include/c.h
parentdmesg: move get_boot_time() to lib/timeutils (diff)
downloadkernel-qcow2-util-linux-0e5218acd9ee73b0042489addf202a9b3cf799ed.tar.gz
kernel-qcow2-util-linux-0e5218acd9ee73b0042489addf202a9b3cf799ed.tar.xz
kernel-qcow2-util-linux-0e5218acd9ee73b0042489addf202a9b3cf799ed.zip
last: fix is_phantom() detection
The /proc/<pid>/loginuid is not always available, and when so a running session should not be determined to be gone. This is a regression from commit mentioned in reference. Sessions that have started before previous system boot, and did not log out meanwhile, will be marked as gone. It is fair to say that these sessions are most likely result of a wtmp corruption. Reference: 404fa3f93c00c7e130f5a0ec963b2dc6a3743986 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'include/c.h')
0 files changed, 0 insertions, 0 deletions