From 85f0edddd511a71d56b3b452ce7a34462421a03c Mon Sep 17 00:00:00 2001 From: Kurt Miller Date: Sat, 23 Sep 2006 12:25:59 +0000 Subject: fix a bug where the logic was reversed --- lib/libpthread/uthread/uthread_fd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libpthread/uthread/uthread_fd.c b/lib/libpthread/uthread/uthread_fd.c index 9cfae2af508..666b94ab20d 100644 --- a/lib/libpthread/uthread/uthread_fd.c +++ b/lib/libpthread/uthread/uthread_fd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_fd.c,v 1.23 2006/09/22 19:04:33 kurt Exp $ */ +/* $OpenBSD: uthread_fd.c,v 1.24 2006/09/23 12:25:58 kurt Exp $ */ /* * Copyright (c) 1995-1998 John Birrell * All rights reserved. @@ -139,7 +139,7 @@ _thread_fs_flags_replace(int fd, struct fs_flags *new_status_flags) * Also don't reset fd to blocking if we are replacing * the status flags with a shared version. */ - if (new_status_flags != NULL && + if (new_status_flags == NULL && (_thread_sys_fstat(fd, &sb) == 0) && ((S_ISREG(sb.st_mode) || S_ISCHR(sb.st_mode)) && (old_status_flags->flags & O_NONBLOCK) == 0)) -- cgit v1.2.3