summaryrefslogtreecommitdiffstats
path: root/utils/statd
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2008-12-06 08:31:29 -0500
committerSteve Dickson <steved@redhat.com>2008-12-06 08:31:29 -0500
commit5d8b800b8438222a55c4698c86b558b15717aa21 (patch)
treed4e7571240e9acf517840067954cf3a82a19dc39 /utils/statd
parentb8711a0665b9ecff9d59ee36d756f50823242f64 (diff)
downloadnfs-utils-5d8b800b8438222a55c4698c86b558b15717aa21.tar.gz
nfs-utils-5d8b800b8438222a55c4698c86b558b15717aa21.tar.xz
nfs-utils-5d8b800b8438222a55c4698c86b558b15717aa21.zip
sm-notify: always exiting without any notification
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>
Diffstat (limited to 'utils/statd')
-rw-r--r--utils/statd/sm-notify.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/statd/sm-notify.c b/utils/statd/sm-notify.c
index 7a7ae1a..d8e2c01 100644
--- a/utils/statd/sm-notify.c
+++ b/utils/statd/sm-notify.c
@@ -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) {