summaryrefslogtreecommitdiffstats
path: root/src/libthread/exec-unix.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-04-25 21:31:32 +0000
committerrsc <devnull@localhost>2004-04-25 21:31:32 +0000
commit10495dd32468a290704d0bd15346e7f66efce3d1 (patch)
tree16b37938e887671147aa31bd85d31222ac5a0e1c /src/libthread/exec-unix.c
parente544651cc7662639c1feab89b31932e69be2c52a (diff)
downloadplan9port-10495dd32468a290704d0bd15346e7f66efce3d1.tar.gz
plan9port-10495dd32468a290704d0bd15346e7f66efce3d1.zip
add stubs for other systems.
add threadspawn.
Diffstat (limited to 'src/libthread/exec-unix.c')
-rw-r--r--src/libthread/exec-unix.c3
1 files changed, 2 insertions, 1 deletions
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