Sign in
plan9port
/
plan9
/
7b9ef735a8d1fddf3887853abbd065271fa9c293
/
.
/
src
/
libthread
/
test
/
tdaemon.c
blob: d492c48b47b8b3e828323fbe7988cbe0d74227d2 [
file
] [
log
] [
blame
]
#include
<u.h>
#include
<libc.h>
#include
<thread.h>
void
proc
(
void
*
v
)
{
sleep
(
5
*
1000
);
print
(
"still running\n"
);
}
void
threadmain
(
int
argc
,
char
**
argv
)
{
proccreate
(
proc
,
nil
,
32768
);
}