Make libustctl list only online pids v3
authorNils Carlson <nils.carlson@ericsson.com>
Mon, 16 May 2011 13:57:15 +0000 (15:57 +0200)
committerNils Carlson <nils.carlson@ericsson.com>
Tue, 17 May 2011 08:40:59 +0000 (10:40 +0200)
Changes since v2:
Botox.

Changes since v1:
Cosmetic surgery at a european cost

Previously libustctl would list all pids. This patch changes this
so only online pids are listed. This is done by appending on each
socket name the mtime from the proc/<pid> directory. This way a
socket can be checked to see if the appended mtime matches the
mtime of the proc dir for the current pid, thus allowing us to
distinguish between old and new socket files.

Signed-off-by: Nils Carlson <nils.carlson@ericsson.com>
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>

No differences found
This page took 0.023446 seconds and 4 git commands to generate.