* Copyright (c) 1989 The Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* Rick Macklem at The University of Guelph.
* %sccs.include.redist.c%
"@(#) Copyright (c) 1989 Regents of the University of California.\n\
static char sccsid
[] = "@(#)nfsiod.c 5.4 (Berkeley) %G%";
* Nfsiod does asynchronous buffered I/O on behalf of the NFS client.
* It does not have to be running for correct operation, but will improve
* throughput. The one optional argument is the number of children to fork.
signal(SIGQUIT
, SIG_IGN
);
signal(SIGTERM
, SIG_IGN
);
if (argc
!= 2 || (cnt
= atoi(argv
[1])) <= 0 || cnt
> 20)
for (i
= 1; i
< cnt
; i
++)
async_daemon(); /* Never returns */