/*
 * autostart - start up the distributor if it's not around.
 */

#include "local.h"

start_distributor ()
{
#ifdef REMOTE_HOST
	exit(1);
#else
	int	pid;

	switch (pid = fork()) {
	case 0:
		(void) setpgrp (0, getpid());
		execl (HEARTS_DIST, "hearts_dist", 0);
		exit (1);
	case -1:
		perror ("fork");
		exit (1);
	default:
		while (wait (0) != pid)
			;
	}
#endif
}
