new test program
This commit is contained in:
parent
2c87dda8f8
commit
96d6b19dcd
1 changed files with 11 additions and 0 deletions
11
src/libthread/test/tdaemon.c
Normal file
11
src/libthread/test/tdaemon.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#include <u.h>
|
||||
#include <libc.h>
|
||||
#include <thread.h>
|
||||
|
||||
void
|
||||
threadmain(int argc, char **argv)
|
||||
{
|
||||
threaddaemonize();
|
||||
sleep(5*1000);
|
||||
print("still running\n");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue