comparison mercurial/util.py @ 1169:e388c4f5cec5

Reverted changeset e254bcbfe636e97301f76c7da241b07be14f3d36 Volker Kleinfeld agreed that this is dead code and tried to fix a problem which was already fixed somewhere else.
author Thomas Arendsen Hein <thomas@intevation.de>
date Tue, 30 Aug 2005 21:26:27 +0200
parents c81d264cd17d
children 78ceaf83f28f
comparison
equal deleted inserted replaced
1168:235e0effa672 1169:e388c4f5cec5
340 else: 340 else:
341 raise 341 raise
342 342
343 def explain_exit(code): 343 def explain_exit(code):
344 """return a 2-tuple (desc, code) describing a process's status""" 344 """return a 2-tuple (desc, code) describing a process's status"""
345 if os.name == 'nt': # os.WIFxx is not supported on windows
346 return "aborted with error." , -1
347 if os.WIFEXITED(code): 345 if os.WIFEXITED(code):
348 val = os.WEXITSTATUS(code) 346 val = os.WEXITSTATUS(code)
349 return "exited with status %d" % val, val 347 return "exited with status %d" % val, val
350 elif os.WIFSIGNALED(code): 348 elif os.WIFSIGNALED(code):
351 val = os.WTERMSIG(code) 349 val = os.WTERMSIG(code)