From: Jérémie Galarneau Date: Mon, 23 Apr 2018 19:29:39 +0000 (-0400) Subject: Fix: checking for existing session daemon is done after daemonizing X-Git-Tag: v2.11.0-rc1~270 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=f472090a05156d5e404506c386ace12cf5636c7d;hp=f472090a05156d5e404506c386ace12cf5636c7d;p=lttng-tools.git 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 ---