void daemon_stop() { /* this function is registered using atexit() to be called when we terminate */ /* there should be nothing like logging or calls to exit() beyond this point */ if (parent_pid != (int)getpid()) return; drop_pid_file(CONFIG_PID_FILE); }
void daemon_stop(void) { drop_pid_file(APP_PID_FILE); }
void daemon_stop() { drop_pid_file(CONFIG_PID_FILE); }