* Copyright (c) 1990 The Regents of the University of California.
* %sccs.include.redist.c%
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid
[] = "@(#)daemon.c 5.2 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
if ((cpid
= fork()) == -1)
int devnull
= open("/dev/null", O_RDWR
, 0);