summaryrefslogtreecommitdiff
path: root/libstd
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-05-07 11:16:12 -0700
committerOri Bernstein <ori@eigenstate.org>2015-05-07 11:16:12 -0700
commit6a8faed320bdd72e0ca316ee4f780ed25bf141ae (patch)
treeaa38a0300a868c67919bf25b0234b42cbd22cc57 /libstd
parentfb2f85ca9b8e7033d6d7190ecc59b0120f246830 (diff)
downloadmc-6a8faed320bdd72e0ca316ee4f780ed25bf141ae.tar.gz
Fix up OSX to work with previous tests.
Diffstat (limited to 'libstd')
-rw-r--r--libstd/sys+osx-x64.myr4
1 files changed, 4 insertions, 0 deletions
diff --git a/libstd/sys+osx-x64.myr b/libstd/sys+osx-x64.myr
index 566274c..f585776 100644
--- a/libstd/sys+osx-x64.myr
+++ b/libstd/sys+osx-x64.myr
@@ -39,6 +39,7 @@ pkg sys =
`Waitexit int32
`Waitsig int32
`Waitstop int32
+ `Waitfail int32
;;
type statbuf = struct
@@ -924,6 +925,9 @@ const sysctl = {mib, old, new
}
const waitstatus = {st
+ if st < 0
+ -> `Waitfail st
+ ;;
match st & 0o177
| 0: -> `Waitexit (st >> 8)
| 0o177:-> `Waitstop (st >> 8)