]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/gssd/gssd_main_loop.c
gssd: handle new client upcall
[nfs-utils.git] / utils / gssd / gssd_main_loop.c
index b5117c57cc2f3e5f7856d1b42924628bf297cdf6..f1a68d3473550663bd3964aab4bdfe4c53a3e88a 100644 (file)
@@ -74,6 +74,17 @@ scan_poll_results(int ret)
 
        for (clp = clnt_list.tqh_first; clp != NULL; clp = clp->list.tqe_next)
        {
+               i = clp->gssd_poll_index;
+               if (i >= 0 && pollarray[i].revents) {
+                       if (pollarray[i].revents & POLLHUP)
+                               dir_changed = 1;
+                       if (pollarray[i].revents & POLLIN)
+                               handle_gssd_upcall(clp);
+                       pollarray[clp->gssd_poll_index].revents = 0;
+                       ret--;
+                       if (!ret)
+                               break;
+               }
                i = clp->krb5_poll_index;
                if (i >= 0 && pollarray[i].revents) {
                        if (pollarray[i].revents & POLLHUP)