X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fstatd%2Fstatd.c;h=0c3b5e97b86f6812d00c988718e7973cda61df07;hp=d07a26002055f16bd2f24f508d7f9ebad6960eb9;hb=5591654c71e7e2e5959c8718a7e880516b9081e8;hpb=764e46f5c5fe1a6e376f4cd350424f33afc9e838 diff --git a/utils/statd/statd.c b/utils/statd/statd.c index d07a260..0c3b5e9 100644 --- a/utils/statd/statd.c +++ b/utils/statd/statd.c @@ -36,7 +36,7 @@ sm_prog_1_wrapper (struct svc_req *rqstp, register SVCXPRT *transp) { /* remote host authorization check */ if (!check_default("statd", svc_getcaller(transp), - rqstp->rq_proc, (u_long) 0)) { + rqstp->rq_proc, SM_PROG)) { svcerr_auth (transp, AUTH_FAILED); return; } @@ -104,6 +104,8 @@ main (int argc, char **argv) signal (SIGHUP, killer); signal (SIGINT, killer); signal (SIGTERM, killer); + /* WARNING: the following works on Linux and SysV, but not BSD! */ + signal(SIGCHLD, SIG_IGN); for (;;) { pmap_unset (SM_PROG, SM_VERS);