]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mountd/mountd.c
2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
[nfs-utils.git] / utils / mountd / mountd.c
index 1cfdc7463c7344d8d6994de4b25c9397227f85d7..d79bf150c6888b9cf64eed752acca85c286d4416 100644 (file)
@@ -263,7 +263,7 @@ get_rootfh(struct svc_req *rqstp, dirpath *path, int *error, int v3)
        } else {
                struct nfs_fh_len  *fh;
 
        } 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);
                        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);
        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,
 
        if (nfs_version & 0x1)
                rpc_init("mountd", MOUNTPROG, MOUNTVERS,