summaryrefslogtreecommitdiffstats
path: root/utils/mountd/mountd.c
diff options
context:
space:
mode:
authorhjl <hjl>2000-08-26 04:09:40 +0000
committerhjl <hjl>2000-08-26 04:09:40 +0000
commit5591654c71e7e2e5959c8718a7e880516b9081e8 (patch)
treebc3b971d883319f2f7aeeee67a58d066fa341398 /utils/mountd/mountd.c
parent764e46f5c5fe1a6e376f4cd350424f33afc9e838 (diff)
downloadnfs-utils-5591654c71e7e2e5959c8718a7e880516b9081e8.tar.gz
nfs-utils-5591654c71e7e2e5959c8718a7e880516b9081e8.tar.xz
nfs-utils-5591654c71e7e2e5959c8718a7e880516b9081e8.zip
2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
* utils/rquotad/rquotad.man, utils/statd/statd.man, utils/mountd/mountd.man: updated * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL) * utils/rquotad/Makefile: fix comment * support/misc/tcpwrapper.c (logit): added comment about waiting for the children after fork() * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving zombies behind (from logit()'s fork) * utils/rquotad/rquota_svc.c (main): ditto * utils/statd/statd.c (main): ditto * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG to check_default instead of 0, for prognum * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG to check_default instead of 0, for prognum * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if HAVE_TCP_WRAPPER is defined. (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is defined. Reject an RPC call if check_default () fails.
Diffstat (limited to 'utils/mountd/mountd.c')
-rw-r--r--utils/mountd/mountd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/mountd/mountd.c b/utils/mountd/mountd.c
index 1eeefdc..d79bf15 100644
--- a/utils/mountd/mountd.c
+++ b/utils/mountd/mountd.c
@@ -445,6 +445,8 @@ main(int argc, char **argv)
sigaction(SIGHUP, &sa, NULL);
sigaction(SIGINT, &sa, NULL);
sigaction(SIGTERM, &sa, NULL);
+ /* WARNING: the following works on Linux and SysV, but not BSD! */
+ sigaction(SIGCHLD, &sa, NULL);
if (nfs_version & 0x1)
rpc_init("mountd", MOUNTPROG, MOUNTVERS,