summaryrefslogtreecommitdiff
path: root/lib/thread/spawn+freebsd.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-08-27 15:55:36 -0700
committerOri Bernstein <ori@eigenstate.org>2016-08-27 15:55:36 -0700
commite83d16d5bd500b8e1913a836560f943a757ab86b (patch)
treeed88a93da5185122d16eec51086a053f0910b9a0 /lib/thread/spawn+freebsd.myr
parent6121d28dc28103cb85b22fe404daaa8c441790b4 (diff)
downloadmc-e83d16d5bd500b8e1913a836560f943a757ab86b.tar.gz
Rename `std.Fail to `std.Err.
Diffstat (limited to 'lib/thread/spawn+freebsd.myr')
-rw-r--r--lib/thread/spawn+freebsd.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/thread/spawn+freebsd.myr b/lib/thread/spawn+freebsd.myr
index 9bf75e4..71ae87d 100644
--- a/lib/thread/spawn+freebsd.myr
+++ b/lib/thread/spawn+freebsd.myr
@@ -21,7 +21,7 @@ const spawnstk = {fn, sz
stk = getstk(sz)
if stk == sys.Mapbad
- -> `std.Fail "couldn't get stack"
+ -> `std.Err "couldn't get stack"
;;
tid = -1
/* find top of stack */
@@ -51,7 +51,7 @@ const spawnstk = {fn, sz
], sizeof(sys.thrparam))
if ret < 0
- -> `std.Fail "couldn't spawn thread"
+ -> `std.Err "couldn't spawn thread"
;;
-> `std.Ok (tid : tid)
}