ports/sysutils/openipmi/files/patch-unix_selector.c
Vinícius Zavam 72a95d640f sysutils/openipmi: update 2.0.28 to 2.0.29
* sourceforge.net/p/openipmi/code/commit_browser
    - 2.0.28 == 1666c8d5a4ee8874
    - 2.0.29 == 7a1d1ce556ce5d3d

  files/patch-unix_selector.c:
    - upstream reworked previous patch changes, we removed those changes;
    - patch was updated to handle the non-existing 'EBADFD' errno;
    - 'EBADFD' is Solaris/Linux specific, as per "bsm/audit_errno.h"
2020-10-24 11:32:30 +00:00

14 lines
440 B
C

--- 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;