plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 96d6b19dcd4f359c3fa8eefcb8615082c840e184
parent 2c87dda8f89e84082523b03b62c5d47d55c13341
Author: rsc <devnull@localhost>
Date:   Tue, 28 Dec 2004 01:36:53 +0000

new test program

Diffstat:
Asrc/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 @@ -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"); +}