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/Linux.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libthread/Linux.c') diff --git a/src/libthread/Linux.c b/src/libthread/Linux.c index 103cb428..3d31a4a9 100644 --- a/src/libthread/Linux.c +++ b/src/libthread/Linux.c @@ -348,3 +348,8 @@ _pthreadinit(void) signal(SIGUSR2, sigusr2handler); } +void +_threadpexit(void) +{ + _exit(0); +} -- cgit v1.2.3