]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
sm-notify: always exiting without any notification
authorSteve Dickson <steved@redhat.com>
Sat, 6 Dec 2008 13:31:29 +0000 (08:31 -0500)
committerSteve Dickson <steved@redhat.com>
Sat, 6 Dec 2008 13:31:29 +0000 (08:31 -0500)
Added curly brackets around the record_pid() check which
stop sm-notify from exiting when a pid file does not
exist.

Signed-off-by: Steve Dickson <steved@redhat.com>
utils/statd/sm-notify.c

index 7a7ae1ac59b00685a9ff29381ae83e5283e58fc6..d8e2c011701b05a539ba4c65ea83545541204542 100644 (file)
@@ -193,10 +193,11 @@ usage:            fprintf(stderr,
        openlog("sm-notify", LOG_PID, LOG_DAEMON);
 
        if (strcmp(_SM_BASE_PATH, BASEDIR) == 0) {
-               if (record_pid() == 0 && force == 0 && opt_update_state == 1)
+               if (record_pid() == 0 && force == 0 && opt_update_state == 1) {
                        /* already run, don't try again */
                        nsm_log(LOG_NOTICE, "Already notifying clients; Exiting!");
                        exit(0);
+               }
        }
 
        if (opt_srcaddr) {