--- portage_exec.py.orig 2005-10-29 19:21:38.000000000 +0900 +++ portage_exec.py 2005-10-29 19:22:13.000000000 +0900 @@ -100,28 +100,12 @@ os.setuid(uid) if umask: os.umask(umask) - try: - # XXX: We would do this to stop ebuild.sh from getting any - # XXX: output, and consequently, we'd get to handle the sigINT. - #os.close(sys.stdin.fileno()) - pass - except SystemExit, e: - raise - except: - pass try: - #print "execing", myc, myargs os.execve(myc,myargs,env) - except SystemExit, e: - raise except Exception, e: - raise str(e)+":\n "+myc+" "+string.join(myargs) - # If the execve fails, we need to report it, and exit - # *carefully* --- report error here - os._exit(1) - sys.exit(1) - return # should never get reached + print str(e)+":\n "+myc+" "+string.join(myargs) + os._exit(1) if logfile: os.close(pw)