projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3a1a20
)
FreeBSD: don't use /dev/fd, bug #478446
author
Zac Medico
<zmedico@gentoo.org>
Mon, 29 Jul 2013 18:39:49 +0000
(11:39 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Mon, 29 Jul 2013 18:39:49 +0000
(11:39 -0700)
pym/portage/process.py
patch
|
blob
|
history
diff --git
a/pym/portage/process.py
b/pym/portage/process.py
index 728a01daf162126bab716e79019f19eec434099a..92f2aba0c548b185a5ec1802c9e7a02008a06fa3 100644
(file)
--- a/
pym/portage/process.py
+++ b/
pym/portage/process.py
@@
-39,6
+39,10
@@
for _fd_dir in ("/proc/self/fd", "/dev/fd"):
else:
_fd_dir = None
+# /dev/fd does not work on FreeBSD, see bug #478446
+if platform.system() in ('FreeBSD',) and _fd_dir == '/dev/fd':
+ _fd_dir = None
+
if _fd_dir is not None:
def get_open_fds():
return (int(fd) for fd in os.listdir(_fd_dir) if fd.isdigit())