- if (send_nfsd_probes(rpc, &ifc, &data) != 0) {
- rpc_destroy_context(rpc);
- free(ifc.ifc_buf);
- return NULL;
- }
-
- gettimeofday(&tv_start, NULL);
- for(;;) {
- int mpt;
-
- pfd.fd = rpc_get_fd(rpc);
- pfd.events = rpc_which_events(rpc);
-
- gettimeofday(&tv_current, NULL);
- mpt = 1000
- - (tv_current.tv_sec *1000 + tv_current.tv_usec / 1000)
- + (tv_start.tv_sec *1000 + tv_start.tv_usec / 1000);
-
- if (poll(&pfd, 1, mpt) < 0) {
- free_nfs_srvr_list(data.srvrs);
+ for (loop=0; loop<3; loop++) {
+ if (send_nfsd_probes(rpc, &ifc, &data) != 0) {