diff options
author | Zac Medico <zmedico@gentoo.org> | 2013-07-29 11:39:49 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2013-07-29 11:39:49 -0700 |
commit | ffc50e4d32706b8962d66cadd21fcd1d0cd58f13 (patch) | |
tree | 2d3bd9bd70caab477f42499670ebcab864d42093 | |
parent | Suppress duplicate repo warning for bug #478544. (diff) | |
download | portage-ffc50e4d32706b8962d66cadd21fcd1d0cd58f13.tar.gz portage-ffc50e4d32706b8962d66cadd21fcd1d0cd58f13.tar.bz2 portage-ffc50e4d32706b8962d66cadd21fcd1d0cd58f13.zip |
FreeBSD: don't use /dev/fd, bug #478446
-rw-r--r-- | pym/portage/process.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage/process.py b/pym/portage/process.py index 728a01daf..92f2aba0c 100644 --- 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()) |