commit | 1d2533d0101fd1721ab26837485c0b094205c3bd | [log] [tgz] |
---|---|---|
author | rsc <devnull@localhost> | Tue Dec 28 22:36:24 2004 +0000 |
committer | rsc <devnull@localhost> | Tue Dec 28 22:36:24 2004 +0000 |
tree | 5f363ff675fa16e800333f2e9ac81e4ecc3636d3 | |
parent | 07bda1263eb4e319e9d8b278e81d75f67a417b66 [diff] [blame] |
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.
diff --git a/src/libthread/FreeBSD.c b/src/libthread/FreeBSD.c index 0fdb54b..df5bdb9 100644 --- a/src/libthread/FreeBSD.c +++ b/src/libthread/FreeBSD.c
@@ -346,6 +346,13 @@ signal(SIGUSR2, sigusr2handler); } +void +_threadpexit(void) +{ + _exit(0); +} + + /* * FreeBSD 4 and earlier needs the context functions. */