mercurial/util.py
changeset 912 302f83b85054
parent 897 fe30f5434b51
child 917 7f3f55903496
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -276,6 +276,6 @@ else:
             val = os.WTERMSIG(code)
             return "killed by signal %d" % val, val
         elif os.WIFSTOPPED(code):
-            val = os.STOPSIG(code)
+            val = os.WSTOPSIG(code)
             return "stopped by signal %d" % val, val
         raise ValueError("invalid exit code")