pfkey_snapshot(0); exit(1);
main(int argc, char **argv){	int	r;	/* Init. */	closefrom(STDERR_FILENO + 1);	for (r = 0; r <= 2; r++)		if (fcntl(r, F_GETFL, 0) == -1 && errno == EBADF)			(void)open("/dev/null", r ? O_WRONLY : O_RDONLY, 0);	for (r = 1; r < _NSIG; r++)		signal(r, SIG_DFL);	log_init(__progname);	timer_init();	pfkey_snapshot(0);	exit(1);	r = conf_init(argc, argv);	if (r > 1) {		fprintf(stderr, "Usage: %s [-c config-file] [-d] [-v[v]]\n",		    __progname);		fprintf(stderr, "Default configuration file is %s\n",		    SASYNCD_CFGFILE);	}	if (r)		return 1;	if (carp_init())		return 1;	if (pfkey_init(0))		return 1;	if (net_init())		return 1;	/* Drop privileges. */	privdrop();	if (!cfgstate.debug)		if (daemon(1, 0)) {			perror("daemon()");			exit(1);		}	/* Main loop. */	sasyncd_run();	/* Shutdown. */	log_msg(0, "shutting down...");	net_shutdown();	pfkey_shutdown();	return 0;}