tnew test program - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit 96d6b19dcd4f359c3fa8eefcb8615082c840e184
parent 2c87dda8f89e84082523b03b62c5d47d55c13341
Author: rsc 
Date:   Tue, 28 Dec 2004 01:36:53 +0000

new test program

Diffstat:
  A src/libthread/test/tdaemon.c        |      11 +++++++++++

1 file changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/libthread/test/tdaemon.c b/src/libthread/test/tdaemon.c
t@@ -0,0 +1,11 @@
+#include 
+#include 
+#include 
+
+void
+threadmain(int argc, char **argv)
+{
+        threaddaemonize();
+        sleep(5*1000);
+        print("still running\n");
+}