Add FD_CLOEXEC option to all anonymous FDs
authorDavid Goulet <david.goulet@polymtl.ca>
Mon, 27 Jun 2011 20:36:27 +0000 (16:36 -0400)
committerDavid Goulet <david.goulet@polymtl.ca>
Mon, 27 Jun 2011 20:36:27 +0000 (16:36 -0400)
commit7b3958902a08e7d96d388614f2726ad8a6fc9df2
tree0191ad3f95ddf3c319fdd4dc2151edbdab1b492d
parent70dc1c3472b32f9f438ae6fdacbc9e656beecbe1
Add FD_CLOEXEC option to all anonymous FDs

Upon execlp() some anonymous file descriptors from the kernel tracer
could be dup and thus making the refcount always > 1 on the lttng kernel
tracer side.

Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
ltt-sessiond/kernel-ctl.c
ltt-sessiond/main.c
This page took 0.031776 seconds and 4 git commands to generate.