diff options
author | hunt <hunt> | 2007-10-09 16:03:04 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-10-09 16:03:04 +0000 |
commit | 577e7ed19be74db082ba058016fd31b643495ebd (patch) | |
tree | c395a0e02f95de53044400fba71000c9e8f5bc3b /runtime/staprun/ctl.c | |
parent | a6053c5b3f42ef0e016df9074ebc75c93a79d544 (diff) | |
download | systemtap-steved-577e7ed19be74db082ba058016fd31b643495ebd.tar.gz systemtap-steved-577e7ed19be74db082ba058016fd31b643495ebd.tar.xz systemtap-steved-577e7ed19be74db082ba058016fd31b643495ebd.zip |
2007-10-09 Martin Hunt <hunt@redhat.com>
* common.c (set_clexec): New.
* staprun.h: Add prototype for set_clexec.
* relay*.c, ctl.c: Call set_clexec after
file opens.
Diffstat (limited to 'runtime/staprun/ctl.c')
-rw-r--r-- | runtime/staprun/ctl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/staprun/ctl.c b/runtime/staprun/ctl.c index d0b07260..7fe57206 100644 --- a/runtime/staprun/ctl.c +++ b/runtime/staprun/ctl.c @@ -36,6 +36,9 @@ int init_ctl_channel(void) perr("Couldn't open control channel '%s'", buf); return -1; } + if (set_clexec(control_channel) < 0) + return -1; + return old_transport; } |