comparison mercurial/util.py @ 912:302f83b85054

Minor tweak: os.STOPSIG -> os.WSTOPSIG. Pychecker spotted this one.
author mark.williamson@cl.cam.ac.uk
date Mon, 15 Aug 2005 11:46:41 -0800
parents fe30f5434b51
children 7f3f55903496
comparison
equal deleted inserted replaced
911:d46af8e6b858 912:302f83b85054
274 return "exited with status %d" % val, val 274 return "exited with status %d" % val, val
275 elif os.WIFSIGNALED(code): 275 elif os.WIFSIGNALED(code):
276 val = os.WTERMSIG(code) 276 val = os.WTERMSIG(code)
277 return "killed by signal %d" % val, val 277 return "killed by signal %d" % val, val
278 elif os.WIFSTOPPED(code): 278 elif os.WIFSTOPPED(code):
279 val = os.STOPSIG(code) 279 val = os.WSTOPSIG(code)
280 return "stopped by signal %d" % val, val 280 return "stopped by signal %d" % val, val
281 raise ValueError("invalid exit code") 281 raise ValueError("invalid exit code")