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>
Wed, 25 Apr 2018 15:26:53 +0000 (11:26 -0400)
commitac00323072d53fcd0e32995163c5db4ef315c932
treeb259bbba8b3017e6fa30e6f1a2dfaade7b9d6ce7
parent6ea623231467f9f787781ea64f9027836522948b
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.028354 seconds and 4 git commands to generate.