示例#1
0
文件: daemon.c 项目: HupuInc/zabbix
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);
}
示例#2
0
文件: daemon.c 项目: Shmuma/z
void	daemon_stop(void)
{	
	drop_pid_file(APP_PID_FILE);
}
示例#3
0
void	daemon_stop()
{
	drop_pid_file(CONFIG_PID_FILE);
}