コード例 #1
0
ファイル: rpcbind.c プロジェクト: Distrotech/rpcbind
void
rpcbind_abort()
{
#ifdef WARMSTART
	write_warmstart();	/* Dump yourself */
#endif
	abort();
}
コード例 #2
0
/*
 * Catch the signal and die
 */
static void
terminate(int dummy __unused)
{
    close(rpcbindlockfd);
#ifdef WARMSTART
    syslog(LOG_ERR,
           "rpcbind terminating on signal. Restart with \"rpcbind -w\"");
    write_warmstart();	/* Dump yourself */
#endif
    exit(2);
}
コード例 #3
0
ファイル: rpcbind.c プロジェクト: Distrotech/rpcbind
/*
 * Catch the signal and die
 */
static void
terminate(int dummy /*__unused*/)
{
	close(rpcbindlockfd);
	unlink(_PATH_RPCBINDSOCK);
	unlink(RPCBINDDLOCK);
#ifdef WARMSTART
	syslog(LOG_ERR,
		"rpcbind terminating on signal. Restart with \"rpcbind -w\"");
	write_warmstart();	/* Dump yourself */
#endif
	exit(2);
}
コード例 #4
0
ファイル: rpcbind.c プロジェクト: ryo/netbsd-src
/*
 * Catch the signal and die
 */
static void
terminate(int dummy)
{
#ifdef WARMSTART
	syslog(LOG_ERR,
		"rpcbind terminating on signal. Restart with \"rpcbind -w\"");
	write_warmstart();	/* Dump yourself */
#endif
#ifdef RPCBIND_RUMP
	exit(2);
#else
	exit(EXIT_FAILURE);
#endif
}