diff options
| author | Amitay Isaacs <amitay@gmail.com> | 2014-06-06 16:46:15 +1000 |
|---|---|---|
| committer | Martin Schwenke <martins@samba.org> | 2014-06-12 05:40:10 +0200 |
| commit | 71ed758c72db36234209428fa54be82fe8f0899a (patch) | |
| tree | 32d9522c88cf31404c4e712e588327a3c9323a1f /ctdb/server | |
| parent | e7c72588d187f9505444f48a1c5b19e47b15ccd9 (diff) | |
| download | samba-71ed758c72db36234209428fa54be82fe8f0899a.tar.gz samba-71ed758c72db36234209428fa54be82fe8f0899a.tar.xz samba-71ed758c72db36234209428fa54be82fe8f0899a.zip | |
ctdb-daemon: Remove duplicate code from helper binaries
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb/server')
| -rw-r--r-- | ctdb/server/ctdb_event_helper.c | 12 | ||||
| -rw-r--r-- | ctdb/server/ctdb_lock_helper.c | 2 |
2 files changed, 2 insertions, 12 deletions
diff --git a/ctdb/server/ctdb_event_helper.c b/ctdb/server/ctdb_event_helper.c index ab1eae4409..be36b0b72a 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; diff --git a/ctdb/server/ctdb_lock_helper.c b/ctdb/server/ctdb_lock_helper.c index d8a1d249b7..b1515a256e 100644 --- a/ctdb/server/ctdb_lock_helper.c +++ b/ctdb/server/ctdb_lock_helper.c @@ -20,7 +20,7 @@ #include "includes.h" #include "tdb.h" #include "system/filesys.h" -#include "../include/ctdb_private.h" +#include "ctdb_private.h" static char *progname = NULL; |
