aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/test/tdaemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libthread/test/tdaemon.c')
-rw-r--r--src/libthread/test/tdaemon.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/libthread/test/tdaemon.c b/src/libthread/test/tdaemon.c
index 5ac9768f..d492c48b 100644
--- a/src/libthread/test/tdaemon.c
+++ b/src/libthread/test/tdaemon.c
@@ -3,9 +3,14 @@
#include <thread.h>
void
-threadmain(int argc, char **argv)
+proc(void *v)
{
- threaddaemonize();
sleep(5*1000);
print("still running\n");
}
+
+void
+threadmain(int argc, char **argv)
+{
+ proccreate(proc, nil, 32768);
+}