summaryrefslogtreecommitdiff
path: root/lib/libpthread
diff options
context:
space:
mode:
authorKurt Miller <kurt@cvs.openbsd.org>2007-04-10 13:04:38 +0000
committerKurt Miller <kurt@cvs.openbsd.org>2007-04-10 13:04:38 +0000
commit455a41219fc8c7b2cae379c0440e790da263d0a5 (patch)
tree0f875241eb4a155e5492aa17ee5d9c33b5d37595 /lib/libpthread
parent5cca97d0d1219eb41fb3e9a49f8a4218e61501f3 (diff)
Revert previous commit which introduced regressions in KDE.
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/uthread/uthread_fork.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libpthread/uthread/uthread_fork.c b/lib/libpthread/uthread/uthread_fork.c
index ea6a92c985b..9253993bc28 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.15 2007/04/07 14:08:46 kurt Exp $ */
+/* $OpenBSD: uthread_fork.c,v 1.16 2007/04/10 13:04:37 kurt Exp $ */
/*
* Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au>
* All rights reserved.
@@ -185,11 +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) {
+ if (_thread_fd_table[i]->status_flags != NULL)
_SPINLOCK_INIT(&_thread_fd_table[i]->status_flags->lock);
- /* make sure child doesn't set fd to blocking upon close */
- _thread_fd_table[i]->status_flags->flags |= O_NONBLOCK;
- }
/*
* If a fd was in the process of closing
* then finish closing it.