Bug 938428 - Always return an int from the cl.py main function, so that sys.exit crazyness doesn't bite. r=gps

This commit is contained in:
Mike Hommey 2013-11-16 13:39:08 +09:00
parent 213db4cc18
commit fbacee20d4

View File

@ -96,7 +96,9 @@ def InvokeClWithDependencyGeneration(cmdline):
ret = p.wait() ret = p.wait()
if ret != 0 or target == "": if ret != 0 or target == "":
return ret # p.wait() returns a long. Somehow sys.exit(long(0)) is like
# sys.exit(1). Don't ask why.
return int(ret)
depsdir = os.path.normpath(os.path.join(os.curdir, ".deps")) depsdir = os.path.normpath(os.path.join(os.curdir, ".deps"))
depstarget = os.path.join(depsdir, depstarget) depstarget = os.path.join(depsdir, depstarget)