X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmountd%2Fmountd.c;h=d79bf150c6888b9cf64eed752acca85c286d4416;hp=1cfdc7463c7344d8d6994de4b25c9397227f85d7;hb=5591654c71e7e2e5959c8718a7e880516b9081e8;hpb=553ba8456a0303021564d7ad5640e8cb7ce7c7a7 diff --git a/utils/mountd/mountd.c b/utils/mountd/mountd.c index 1cfdc74..d79bf15 100644 --- a/utils/mountd/mountd.c +++ b/utils/mountd/mountd.c @@ -263,7 +263,7 @@ get_rootfh(struct svc_req *rqstp, dirpath *path, int *error, int v3) } else { struct nfs_fh_len *fh; - if (!exp->m_exported) + if (exp->m_exported<1) export_export(exp); if (!exp->m_xtabent) xtab_append(exp); @@ -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,