summaryrefslogtreecommitdiff
path: root/fork.c
diff options
context:
space:
mode:
authorrpj <rpj>1998-07-25 13:17:50 +0000
committerrpj <rpj>1998-07-25 13:17:50 +0000
commit74c0f91a6baa41a437cf2b45a209d5041820c131 (patch)
treeed9e9a0803e9b77513771ee07f6d6096479dfcbf /fork.c
parentcb53662d7bc60f56f4bdeddc1ceb63bfeda4098f (diff)
Sat Jul 25 23:16:51 1998 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* fork.c (fork): Add comment.
Diffstat (limited to 'fork.c')
-rw-r--r--fork.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fork.c b/fork.c
index 4ec53a7..0d62226 100644
--- a/fork.c
+++ b/fork.c
@@ -121,6 +121,8 @@ fork()
/* Terminate all threads except pthread_self() using
pthread_cancel(). */
_pthread_cancel_all_not_self();
+
+ /* Wait for them to finish before we continue. */
_pthread_join_all_not_self();
return 0;