else:
fd_pipes = {}
- fd_pipes.setdefault(0, sys.stdin.fileno())
+ null_input = open('/dev/null', 'rb')
+ fd_pipes.setdefault(0, null_input.fileno())
fd_pipes.setdefault(1, sys.stdout.fileno())
fd_pipes.setdefault(2, sys.stderr.fileno())
fd_pipes=fd_pipes, returnpid=True)
os.close(slave_fd)
+ null_input.close()
if isinstance(retval, int):
# doebuild failed before spawning
xterm_titles = "notitles" not in settings.features
emergelog(xterm_titles, " === regen")
#regenerate cache entries
- try:
- os.close(sys.stdin.fileno())
- except SystemExit:
- raise # Needed else can't exit
- except:
- pass
sys.stdout.flush()
regen = MetadataRegen(portdb, max_jobs=max_jobs, max_load=max_load)