~cypheon/pkgsrc-wip

pkgsrc-wip/exabgp4/patches/patch-lib_exabgp_reactor_daemon.py -rw-r--r-- 520 bytes
5f1bf4f5 — Johann Rudloff Subst PLIST paths for platform specific files for other architectures 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD$

Already fixed upstream, but not released
https://github.com/Exa-Networks/exabgp/commit/b4a7028

--- lib/exabgp/reactor/daemon.py.orig	2021-01-28 18:18:19.554094109 +0000
+++ lib/exabgp/reactor/daemon.py
@@ -156,7 +156,7 @@ class Daemon(object):
     def _is_socket(self, fd):
         try:
             s = socket.fromfd(fd, socket.AF_INET, socket.SOCK_RAW)
-        except ValueError:
+        except (OSError, ValueError):
             # The file descriptor is closed
             return False
         try: