diff options
Diffstat (limited to 'ctdb/server/ctdb_event_helper.c')
-rw-r--r-- | ctdb/server/ctdb_event_helper.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/ctdb/server/ctdb_event_helper.c b/ctdb/server/ctdb_event_helper.c index ab1eae44091..be36b0b72a9 100644 --- a/ctdb/server/ctdb_event_helper.c +++ b/ctdb/server/ctdb_event_helper.c @@ -19,6 +19,7 @@ #include "includes.h" #include "system/filesys.h" +#include "ctdb_private.h" static char *progname = NULL; @@ -38,17 +39,6 @@ static void sigterm(int sig) _exit(0); } -static void set_close_on_exec(int fd) -{ - int v; - - v = fcntl(fd, F_GETFD, 0); - if (v == -1) { - return; - } - fcntl(fd, F_SETFD, v | FD_CLOEXEC); -} - static int check_executable(const char *path) { struct stat st; |