Fix: Handle EINTR of waitpid when spawning a session daemon
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 24 Sep 2015 16:34:49 +0000 (12:34 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 24 Sep 2015 18:33:51 +0000 (14:33 -0400)
commit09eea2d6006c2f35aab1b6e25e767baf67fbe5f3
tree1cb611082f171e05fa941202d307459a879f60f1
parent9047ce05ecadee2929751aa4605f62b07fcc130b
Fix: Handle EINTR of waitpid when spawning a session daemon

waitpid may fail for various reasons, being interrupted being
the most frequent. In such a case, status is left uninitialized
which results in the WIFSIGNALED and WIFEXITED macros returning
undefined value, resulting in surprising logging statements such
as "killed by signal 114".

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