walters / rpms / nfs-utils

Forked from rpms/nfs-utils 6 years ago
Clone
3cafe3a
commit 5d8b800b8438222a55c4698c86b558b15717aa21
3cafe3a
Author: Steve Dickson <steved@redhat.com>
3cafe3a
Date:   Sat Dec 6 08:31:29 2008 -0500
3cafe3a
3cafe3a
    sm-notify: always exiting without any notification
3cafe3a
    
3cafe3a
    Added curly brackets around the record_pid() check which
3cafe3a
    stop sm-notify from exiting when a pid file does not
3cafe3a
    exist.
3cafe3a
    
3cafe3a
    Signed-off-by: Steve Dickson <steved@redhat.com>
3cafe3a
3cafe3a
diff --git a/utils/statd/sm-notify.c b/utils/statd/sm-notify.c
3cafe3a
index 7a7ae1a..d8e2c01 100644
3cafe3a
--- a/utils/statd/sm-notify.c
3cafe3a
+++ b/utils/statd/sm-notify.c
3cafe3a
@@ -193,10 +193,11 @@ usage:		fprintf(stderr,
3cafe3a
 	openlog("sm-notify", LOG_PID, LOG_DAEMON);
3cafe3a
 
3cafe3a
 	if (strcmp(_SM_BASE_PATH, BASEDIR) == 0) {
3cafe3a
-		if (record_pid() == 0 && force == 0 && opt_update_state == 1)
3cafe3a
+		if (record_pid() == 0 && force == 0 && opt_update_state == 1) {
3cafe3a
 			/* already run, don't try again */
3cafe3a
 			nsm_log(LOG_NOTICE, "Already notifying clients; Exiting!");
3cafe3a
 			exit(0);
3cafe3a
+		}
3cafe3a
 	}
3cafe3a
 
3cafe3a
 	if (opt_srcaddr) {