X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=utils%2Fstatd%2Fstatd.c;h=a44f39f2394097863c14de256801984d9e6907f3;hb=7b01c4762ae242d2114cc6a59994f678b7d253fc;hp=22d5deb51ecfb38afbb9650a3ae0149e0726998a;hpb=6b82a93f2dc7f303103540babb74a75e41b84008;p=nfs-utils.git diff --git a/utils/statd/statd.c b/utils/statd/statd.c index 22d5deb..a44f39f 100644 --- a/utils/statd/statd.c +++ b/utils/statd/statd.c @@ -476,6 +476,14 @@ int main (int argc, char **argv) waitpid(pid, NULL, 0); } + /* Make sure we have a privilege port for calling into the kernel */ + statd_get_socket(); + + /* If sm-notify didn't take all the state files, load + * state information into our notify-list so we can + * pass on any SM_NOTIFY that arrives + */ + load_state(); for (;;) { pmap_unset (SM_PROG, SM_VERS);