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
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
static void sig_term(int sig)
{
-#if HAVE_GETPGRP
+#ifdef HAVE_GETPGRP
if (getpgrp() == getpid()) {
/*
* We're the process group leader, send
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());
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.