Skip to content

Commit 59d5510

Browse files
committed
deatch the threads
1 parent 2821a61 commit 59d5510

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pthreads/sigwait.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
void *
2323
thread(void *x)
2424
{
25+
pthread_detach(pthread_self());
26+
2527
int i;
2628

2729
for (i = 0; i < CYCLES; ++i) {

0 commit comments

Comments
 (0)