summaryrefslogtreecommitdiff
path: root/sysutils/openipmi/files/patch-unix_selector.c
blob: 0e6cec37b7d60b311b83d7a4b3e3f00329c931ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- unix/selector.c.orig	2020-10-24 10:59:38 UTC
+++ unix/selector.c
@@ -1030,7 +1030,10 @@ process_fds(struct selector_s	    *sel,
 		  &tmp_except_set,
 		  &ts, &sigmask);
     if (err < 0) {
-	if (errno == EBADF || errno == EBADFD)
+	/* We do not have EBADFD, as it is Solaris and Linux specific;
+	 * if (errno == EBADF || errno == EBADFD)
+	 */
+	if (errno == EBADF)
 	    /* We raced, just retry it. */
 	    goto retry;
 	goto out;