Skip to content
Snippets Groups Projects
Commit 67ec5fdc authored by rswindell's avatar rswindell
Browse files

Changed HUP signal handler (for Unix) to recycle each server using internal

semaphores, rather than flagging nodes for re-run.
parent dfe90d9c
No related branches found
No related tags found
No related merge requests found
......@@ -747,16 +747,22 @@ void _sighandler_quit(int sig)
void _sighandler_rerun(int sig)
{
int i;
node_t node;
lputs(" Got HUP (rerun) signal");
#if 0 /* old way, we don't want to recycle all nodes, necessarily */
for(i=1;i<=scfg.sys_nodes;i++) {
getnodedat(&scfg,i,&node,NULL /* file */);
node.misc|=NODE_RRUN;
printnodedat(&scfg,i,&node);
}
#else /* instead, recycle all our servers */
bbs_startup.recycle_now=TRUE;
ftp_startup.recycle_now=TRUE;
web_startup.recycle_now=TRUE;
mail_startup.recycle_now=TRUE;
services_startup.recycle_now=TRUE;
#endif
}
#ifdef NEEDS_DAEMON
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment