From 10495dd32468a290704d0bd15346e7f66efce3d1 Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 25 Apr 2004 21:31:32 +0000 Subject: add stubs for other systems. add threadspawn. --- src/libthread/exec-unix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libthread/exec-unix.c') diff --git a/src/libthread/exec-unix.c b/src/libthread/exec-unix.c index a4a90d8b..3d4dfcac 100644 --- a/src/libthread/exec-unix.c +++ b/src/libthread/exec-unix.c @@ -115,7 +115,8 @@ threadexecl(Channel *pidc, int fd[3], char *f, ...) args[n] = 0; va_end(arg); - _threadexec(pidc, fd, f, args, 1); + if(_threadexec(pidc, fd, f, args, 1) >= 0) + threadexits(nil); } static void -- cgit v1.2.3