diff options
Diffstat (limited to 'lib/libpthread/uthread/uthread_fork.c')
-rw-r--r-- | lib/libpthread/uthread/uthread_fork.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libpthread/uthread/uthread_fork.c b/lib/libpthread/uthread/uthread_fork.c index 09a3279392a..3c51d6cf305 100644 --- a/lib/libpthread/uthread/uthread_fork.c +++ b/lib/libpthread/uthread/uthread_fork.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_fork.c,v 1.12 2005/10/30 03:37:34 brad Exp $ */ +/* $OpenBSD: uthread_fork.c,v 1.13 2006/09/22 19:04:33 kurt Exp $ */ /* * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au> * All rights reserved. @@ -185,6 +185,8 @@ fork(void) _thread_fd_table[i]->w_lineno = 0; _thread_fd_table[i]->r_lockcount = 0; _thread_fd_table[i]->w_lockcount = 0; + if (_thread_fd_table[i]->status_flags != NULL) + _SPINLOCK_INIT(&_thread_fd_table[i]->status_flags->lock); /* Initialise the read/write queues: */ TAILQ_INIT(&_thread_fd_table[i]->r_queue); |