diff options
Diffstat (limited to 'otherlibs')
-rw-r--r-- | otherlibs/unix/wait.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/otherlibs/unix/wait.c b/otherlibs/unix/wait.c index 5d74b8380..486d06af7 100644 --- a/otherlibs/unix/wait.c +++ b/otherlibs/unix/wait.c @@ -47,11 +47,11 @@ static value alloc_process_status(int pid, int status) } else if (WIFSTOPPED(status)) { st = alloc_small(1, TAG_WSTOPPED); - Field(st, 0) = Val_int(WSTOPSIG(status)); + Field(st, 0) = Val_int(caml_rev_convert_signal_number(WSTOPSIG(status))); } else { st = alloc_small(1, TAG_WSIGNALED); - Field(st, 0) = Val_int(WTERMSIG(status)); + Field(st, 0) = Val_int(caml_rev_convert_signal_number(WTERMSIG(status))); } Begin_root (st); res = alloc_small(2, 0); |