summaryrefslogtreecommitdiffstats
path: root/utils/statd/state.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/statd/state.c')
-rw-r--r--utils/statd/state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/statd/state.c b/utils/statd/state.c
index 101c00b..6becdc7 100644
--- a/utils/statd/state.c
+++ b/utils/statd/state.c
@@ -56,7 +56,7 @@ change_state (void)
if (close (fd) == -1)
log (L_ERROR, "close (%s): %s", SM_STAT_PATH, strerror (errno));
- if (!restart) {
+ if (MY_NAME == NULL) {
char fullhost[SM_MAXSTRLEN + 1];
struct hostent *hostinfo;