+ if (sig_received)
+ return;
+ if ( getpid() != my_pid ) // can happen in unlikely cases
+ return; // when the sig hits a child just after fork(), before it
+ // clears its sighandler. MP-559.
+ sig_received = signo;
+ if (routerp)
+ routerp->stop(signo);
+ if (signo == SIGTERM)
+ kill(-process_group, SIGTERM); /* kill all children processes as well */