]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:smbd: Use #ifdef instead of #if for config.h definitions
authorAndreas Schneider <asn@samba.org>
Wed, 21 Nov 2018 10:37:26 +0000 (11:37 +0100)
committerGary Lockyer <gary@samba.org>
Wed, 28 Nov 2018 22:19:24 +0000 (23:19 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source4/smbd/process_prefork.c
source4/smbd/process_standard.c
source4/smbd/server.c

index 49446d23b5a784b33470d03a0b857fcec07695be..a7222079624a209a6bd8ce64f82cb2c260116c8c 100644 (file)
@@ -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
index d25538716baf747924bc7e31ff3a6f530491b3e1..b1cc7de155d0b3c0ed901d5bd3d84b4add0aab09 100644 (file)
@@ -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
index 5eca0b9e869b4fe1e49b88e4d7608209f94168a2..57e05dccade83a0c52f00ac3f845e8c9ef250df8 100644 (file)
@@ -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.