diff options
author | rsc <devnull@localhost> | 2004-12-28 22:36:24 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-12-28 22:36:24 +0000 |
commit | 1d2533d0101fd1721ab26837485c0b094205c3bd (patch) | |
tree | 5f363ff675fa16e800333f2e9ac81e4ecc3636d3 /src/libthread/pthread.c | |
parent | 07bda1263eb4e319e9d8b278e81d75f67a417b66 (diff) | |
download | plan9port-1d2533d0101fd1721ab26837485c0b094205c3bd.tar.gz plan9port-1d2533d0101fd1721ab26837485c0b094205c3bd.tar.bz2 plan9port-1d2533d0101fd1721ab26837485c0b094205c3bd.zip |
restore old plan 9 property that when the
last thread exits the main proc, the remaining
program ends up in the background and the
program appears to have exited.
Diffstat (limited to 'src/libthread/pthread.c')
-rw-r--r-- | src/libthread/pthread.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libthread/pthread.c b/src/libthread/pthread.c index 8d3c7f9a..fcc309b7 100644 --- a/src/libthread/pthread.c +++ b/src/libthread/pthread.c @@ -132,3 +132,8 @@ threadexitsall(char *msg) exits(msg); } +void +_threadpexit(void) +{ + pthread_exit(0); +} |