[entropy.fetchers] handle "out of pty devices" error, fix Sabayon bug 2620

This commit is contained in:
Fabio Erculiani
2011-08-12 23:36:41 +02:00
parent 8f4be276eb
commit 5a67de3e30
+7 -1
View File
@@ -229,7 +229,13 @@ class UrlFetcher(TextInterface):
except IOError:
return
pid, fd = pty.fork()
try:
pid, fd = pty.fork()
except OSError as err:
const_debug_write(__name__,
"__fork_cmd(%s): status: %s" % (args, err,))
# out of pty devices
return 1
if pid == 0:
proc = subprocess.Popen(args, env = environ)