From 96d6b19dcd4f359c3fa8eefcb8615082c840e184 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 28 Dec 2004 01:36:53 +0000 Subject: new test program --- src/libthread/test/tdaemon.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/libthread/test/tdaemon.c (limited to 'src/libthread/test/tdaemon.c') diff --git a/src/libthread/test/tdaemon.c b/src/libthread/test/tdaemon.c new file mode 100644 index 00000000..5ac9768f --- /dev/null +++ b/src/libthread/test/tdaemon.c @@ -0,0 +1,11 @@ +#include +#include +#include + +void +threadmain(int argc, char **argv) +{ + threaddaemonize(); + sleep(5*1000); + print("still running\n"); +} -- cgit v1.2.3