mirror of
https://git.freebsd.org/ports.git
synced 2025-05-14 08:11:50 -04:00
* 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"
14 lines
440 B
C
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;
|