From 1d2533d0101fd1721ab26837485c0b094205c3bd Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 28 Dec 2004 22:36:24 +0000 Subject: 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. --- src/libthread/pthread.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libthread/pthread.c') 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); +} -- cgit v1.2.3