summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/uthread
diff options
context:
space:
mode:
authorkurt <kurt@openbsd.org>2007-04-10 13:04:37 +0000
committerkurt <kurt@openbsd.org>2007-04-10 13:04:37 +0000
commite333dfc5160ee974f6e49f3c8b34033dc4590cfa (patch)
treec27fdcfab76cf4cc4a30c46a69b87a43fffe9aba /lib/libpthread/uthread
parentrestricts some of the commands that produce too much output when run (diff)
downloadwireguard-openbsd-e333dfc5160ee974f6e49f3c8b34033dc4590cfa.tar.xz
wireguard-openbsd-e333dfc5160ee974f6e49f3c8b34033dc4590cfa.zip
Revert previous commit which introduced regressions in KDE.
Diffstat (limited to 'lib/libpthread/uthread')
-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.