]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/statd/statd.c
statd - keep persistent state in sm/* files.
[nfs-utils.git] / utils / statd / statd.c
index 22d5deb51ecfb38afbb9650a3ae0149e0726998a..a44f39f2394097863c14de256801984d9e6907f3 100644 (file)
@@ -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);