]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/statd/statd.c
utils: Return status 0 on clean exits
[nfs-utils.git] / utils / statd / statd.c
index 7be6454cbe171bef72b2577aa7cf2f1ec1b68253..652546cb9b40e190b8f4a125a2f8068fa4868c14 100644 (file)
@@ -75,11 +75,8 @@ extern void simulator (int, char **);
 static void 
 sm_prog_1_wrapper (struct svc_req *rqstp, register SVCXPRT *transp)
 {
-       struct sockaddr_in *sin = nfs_getrpccaller_in(transp);
-
        /* remote host authorization check */
-       if (sin->sin_family == AF_INET &&
-           !check_default("statd", sin, rqstp->rq_proc, SM_PROG)) {
+       if (!check_default("statd", nfs_getrpccaller(transp), SM_PROG)) {
                svcerr_auth (transp, AUTH_FAILED);
                return;
        }
@@ -102,7 +99,8 @@ static void
 killer (int sig)
 {
        statd_unregister ();
-       xlog_err ("Caught signal %d, un-registering and exiting", sig);
+       xlog(D_GENERAL, "Caught signal %d, un-registering and exiting", sig);
+       exit(0);
 }
 
 static void