X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fstatd%2Fsvc_run.c;h=597b68d31fdcc83f9b9d50c380983e9ffa565cee;hp=7b69dc8938e744dcc0161026adbc356382df0eb7;hb=4929f11159f0e6568f13820f114594028fc81e2d;hpb=8d926d3defedf7bb82c2f3f9fd1746fb0d0b968a diff --git a/utils/statd/svc_run.c b/utils/statd/svc_run.c index 7b69dc8..597b68d 100644 --- a/utils/statd/svc_run.c +++ b/utils/statd/svc_run.c @@ -88,6 +88,9 @@ my_svc_run(void) if (svc_stop) return; if (re_notify) { + change_state(); + dprintf(N_DEBUG, "Notifying...(new state %d)", + MY_STATE); notify_hosts(); re_notify = 0; } @@ -120,7 +123,8 @@ my_svc_run(void) if (errno == EINTR || errno == ECONNREFUSED || errno == ENETUNREACH || errno == EHOSTUNREACH) continue; - note(N_ERROR, "my_svc_run() - select: %m"); + note(N_ERROR, "my_svc_run() - select: %s", + strerror (errno)); return; case 0: