diff --git a/libraries/entropy/fetchers.py b/libraries/entropy/fetchers.py index b401aa243..dfcb48737 100644 --- a/libraries/entropy/fetchers.py +++ b/libraries/entropy/fetchers.py @@ -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)