Skip to content
Snippets Groups Projects
Commit 7c6b6d50 authored by Moe Jette's avatar Moe Jette
Browse files
parent 6421f4e2
No related branches found
No related tags found
No related merge requests found
...@@ -593,10 +593,14 @@ extern int _slurm_connect (int __fd, struct sockaddr const * __addr, ...@@ -593,10 +593,14 @@ extern int _slurm_connect (int __fd, struct sockaddr const * __addr,
ufds.events = POLLIN | POLLOUT; ufds.events = POLLIN | POLLOUT;
ufds.revents = 0; ufds.revents = 0;
rc = poll(&ufds, 1, 5000); again: rc = poll(&ufds, 1, 5000);
if (rc == -1) { if (rc == -1) {
/* poll failed */ /* poll failed */
error("_slurm_connect poll failed: %m"); if (errno == EINTR) {
verbose("_slurm_connect poll failed: %m");
goto again;
} else
error("_slurm_connect poll failed: %m");
return -1; return -1;
} else if (rc == 0) { } else if (rc == 0) {
/* poll timed out before any socket events */ /* poll timed out before any socket events */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment