function sig_handler($signo) { global $cdc; switch ($signo) { case SIGTERM: case SIGHUP: case SIGINT: FlexCDC::shutdown_plugins($cdc); die1(0); } }