diff options
Diffstat (limited to 'src/libthread/main.c')
-rw-r--r-- | src/libthread/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libthread/main.c b/src/libthread/main.c index 53061471..96d99335 100644 --- a/src/libthread/main.c +++ b/src/libthread/main.c @@ -15,6 +15,13 @@ static void mainlauncher(void*); extern void (*_sysfatal)(char*, va_list); void +_threadstatus(int x) +{ + USED(x); + threadstatus(); +} + +void _threaddie(int x) { extern char *_threadexitsallstatus; @@ -38,6 +45,7 @@ main(int argc, char **argv) signal(SIGTERM, _threaddie); signal(SIGCHLD, _nop); + signal(SIGINFO, _threadstatus); // rfork(RFREND); //_threaddebuglevel = (DBGSCHED|DBGCHAN|DBGREND)^~0; |