}
-#ifdef EXPERIMENTAL_QUEUE_RAMP
/*************************************************
* Listener socket for local work prompts *
*************************************************/
buf[sz] = 0;
switch (buf[0])
{
+#ifdef EXPERIMENTAL_QUEUE_RAMP
case NOTIFY_MSG_QRUN:
/* this should be a message_id */
DEBUG(D_queue_run)
debug_printf("%s: qrunner trigger: %s\n", __FUNCTION__, buf+1);
memcpy(queuerun_msgid, buf+1, MESSAGE_ID_LENGTH+1);
return TRUE;
+#endif /*EXPERIMENTAL_QUEUE_RAMP*/
}
return FALSE;
}
-#endif /*EXPERIMENTAL_QUEUE_RAMP*/
/*************************************************
/* We are now in the disconnected, daemon process (unless debugging). Set up
the listening sockets if required. */
-#ifdef EXPERIMENTAL_QUEUE_RAMP
-if (queue_fast_ramp)
- daemon_notifier_socket();
-#endif
+daemon_notifier_socket();
if (f.daemon_listen && !f.inetd_wait_mode)
{
/* Close any open listening sockets in the child */
-#ifdef EXPERIMENTAL_QUEUE_RAMP
if (daemon_notifier_fd >= 0)
(void) close(daemon_notifier_fd);
-#endif
for (int sk = 0; sk < listen_socket_count; sk++)
(void) close(listen_sockets[sk]);
fd_set select_listen;
FD_ZERO(&select_listen);
-#ifdef EXPERIMENTAL_QUEUE_RAMP
if (daemon_notifier_fd >= 0)
FD_SET(daemon_notifier_fd, &select_listen);
-#endif
for (int sk = 0; sk < listen_socket_count; sk++)
{
FD_SET(listen_sockets[sk], &select_listen);
if (!select_failed)
{
-#ifdef EXPERIMENTAL_QUEUE_RAMP
if ( daemon_notifier_fd >= 0
&& FD_ISSET(daemon_notifier_fd, &select_listen))
{
sigalrm_seen = daemon_notification();
break; /* to top of daemon loop */
}
-#endif
for (int sk = 0; sk < listen_socket_count; sk++)
if (FD_ISSET(listen_sockets[sk], &select_listen))
{