void iquit( int signo ) { #ifdef HAVE_LIBXPL xPL_shutdown(); #endif longjmp(mjb, 1); }
static void shutdownHandler(int onSignal) { xPL_setServiceEnabled(xplService, FALSE); xPL_releaseService(xplService); xPL_shutdown(); unlink(pidFile); exit(0); }
void engine_quit ( int signo ) { char buffer[PATH_LEN + 1]; signal(SIGTERM, engine_quit); syslog(LOG_ERR, "interrupt received\n"); #ifdef HAVE_LIBXPL xPL_shutdown(); #endif write_x10state_file(); sprintf(buffer, "%s/LCK..%s%s", LOCKDIR, STATE_LOCKFILE, configp->suffix); unlink(buffer); exit(0); }
void shutdownHandler(int onSignal) { xPL_setServiceEnabled(telldusService, FALSE); xPL_releaseService(telldusService); xPL_shutdown(); exit(0); }