#include	<local-system>
#include	<signal.h>

main()
{
	switch (fork())
	{
	case SYSERROR:
		perror("fork");
		exit(1);

	case 0:
		break;

	default:
		exit(0);
	}

	signal(SIGHUP, SIG_DFL);
	signal(SIGINT, SIG_IGN);
	signal(SIGQUIT, SIG_IGN);
	signal(SIGTERM, SIG_IGN);

	for (;;)
		sleep(15 * 60);
}

© 1997, Boyd Roberts: boyd@planete.net