Fix: checking for existing session daemon is done after daemonizing
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 23 Apr 2018 19:29:39 +0000 (15:29 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 24 Apr 2018 20:33:55 +0000 (16:33 -0400)
commitf472090a05156d5e404506c386ace12cf5636c7d
tree5ac44d288d55b1c9c397dc094dfeb09a78736c7d
parent06b180a1fc9d4ee68cce95c64151ccc6868199c2
Fix: checking for existing session daemon is done after daemonizing

The session daemon checks that no other session daemons are
running only after daemonizing. This means that launching the
deamon in background or daemon modes will appear to succeed even
if the launch failed due to an already present daemon.

The check is performed using both the client socket and the lock
file. This fix also addresses another problem that would cause
the pid file to be overwritten and deleted even if the session daemon
failed to launch.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/main.c
This page took 0.027155 seconds and 5 git commands to generate.