diff options
author | Andreas Schneider <asn@samba.org> | 2018-11-21 11:37:26 +0100 |
---|---|---|
committer | Gary Lockyer <gary@samba.org> | 2018-11-28 23:19:24 +0100 |
commit | 342c3b7dae269645a7629719ad6c1948f2e0e09e (patch) | |
tree | acaf8a1a0cbe08d68df4823aaf76bbc1901e2fdc /source4 | |
parent | 4c4d588f4777548f81881024e4ed0c08e3ac20b6 (diff) | |
download | samba-342c3b7dae269645a7629719ad6c1948f2e0e09e.tar.gz |
s4:smbd: Use #ifdef instead of #if for config.h definitions
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/smbd/process_prefork.c | 2 | ||||
-rw-r--r-- | source4/smbd/process_standard.c | 2 | ||||
-rw-r--r-- | source4/smbd/server.c | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/source4/smbd/process_prefork.c b/source4/smbd/process_prefork.c index 49446d23b5a..a7222079624 100644 --- a/source4/smbd/process_prefork.c +++ b/source4/smbd/process_prefork.c @@ -121,7 +121,7 @@ static void sigterm_signal_handler(struct tevent_context *ev, int signum, int count, void *siginfo, void *private_data) { -#if HAVE_GETPGRP +#ifdef HAVE_GETPGRP if (getpgrp() == getpid()) { /* * We're the process group leader, send diff --git a/source4/smbd/process_standard.c b/source4/smbd/process_standard.c index d25538716ba..b1cc7de155d 100644 --- a/source4/smbd/process_standard.c +++ b/source4/smbd/process_standard.c @@ -68,7 +68,7 @@ static void sigterm_signal_handler(struct tevent_context *ev, int signum, int count, void *siginfo, void *private_data) { -#if HAVE_GETPGRP +#ifdef HAVE_GETPGRP if (getpgrp() == getpid()) { /* * We're the process group leader, send diff --git a/source4/smbd/server.c b/source4/smbd/server.c index 5eca0b9e869..57e05dccade 100644 --- a/source4/smbd/server.c +++ b/source4/smbd/server.c @@ -128,7 +128,7 @@ static void sig_hup(int sig) static void sig_term(int sig) { -#if HAVE_GETPGRP +#ifdef HAVE_GETPGRP if (getpgrp() == getpid()) { /* * We're the process group leader, send @@ -198,7 +198,7 @@ static void server_stdin_handler(struct tevent_context *event_ctx, if (read(0, &c, 1) == 0) { DBG_ERR("%s: EOF on stdin - PID %d terminating\n", state->binary_name, (int)getpid()); -#if HAVE_GETPGRP +#ifdef HAVE_GETPGRP if (getpgrp() == getpid()) { DBG_ERR("Sending SIGTERM from pid %d\n", (int)getpid()); @@ -594,7 +594,7 @@ static int binary_smbd_main(const char *binary_name, stdin_event_flags = 0; } -#if HAVE_SETPGID +#ifdef HAVE_SETPGID /* * If we're interactive we want to set our own process group for * signal management, unless --no-process-group specified. |