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.
This commit is contained in:
parent
07bda1263e
commit
1d2533d010
6 changed files with 36 additions and 8 deletions
|
|
@ -346,6 +346,13 @@ _pthreadinit(void)
|
|||
signal(SIGUSR2, sigusr2handler);
|
||||
}
|
||||
|
||||
void
|
||||
_threadpexit(void)
|
||||
{
|
||||
_exit(0);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* FreeBSD 4 and earlier needs the context functions.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue