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