Esempio n. 1
0
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);
}
Esempio n. 2
0
File: daemon.c Progetto: Shmuma/z
void	daemon_stop(void)
{	
	drop_pid_file(APP_PID_FILE);
}
Esempio n. 3
0
void	daemon_stop()
{
	drop_pid_file(CONFIG_PID_FILE);
}