libthread: add threadmaybackground
Programs that want to background themselves now need to define threadmaybackground returning 1. This avoids a confusing (to people and debuggers) extra parent process for all the threaded programs that will never want to background themselves.
This commit is contained in:
7
src/libthread/bg.c
Normal file
7
src/libthread/bg.c
Normal file
@@ -0,0 +1,7 @@
|
||||
#include "threadimpl.h"
|
||||
|
||||
int
|
||||
threadmaybackground(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user