new test program
This commit is contained in:
parent
2c87dda8f8
commit
96d6b19dcd
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…
Reference in New Issue
Block a user