summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/uthread/uthread_fcntl.c
diff options
context:
space:
mode:
authormatthew <matthew@openbsd.org>2011-07-19 22:37:36 +0000
committermatthew <matthew@openbsd.org>2011-07-19 22:37:36 +0000
commitc1e7e56b8b540d9835b75dedf87ad674ece08b68 (patch)
treee26ddd9833df506ab3965a7216db7212812a35dc /lib/libpthread/uthread/uthread_fcntl.c
parentbetter text (diff)
downloadwireguard-openbsd-c1e7e56b8b540d9835b75dedf87ad674ece08b68.tar.xz
wireguard-openbsd-c1e7e56b8b540d9835b75dedf87ad674ece08b68.zip
Handle F_DUPFD_CLOEXEC the same as we do F_DUPFD.
ok guenther@
Diffstat (limited to 'lib/libpthread/uthread/uthread_fcntl.c')
-rw-r--r--lib/libpthread/uthread/uthread_fcntl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libpthread/uthread/uthread_fcntl.c b/lib/libpthread/uthread/uthread_fcntl.c
index 864489b6e8d..6fa1a239cc6 100644
--- a/lib/libpthread/uthread/uthread_fcntl.c
+++ b/lib/libpthread/uthread/uthread_fcntl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_fcntl.c,v 1.10 2010/01/03 23:05:35 fgsch Exp $ */
+/* $OpenBSD: uthread_fcntl.c,v 1.11 2011/07/19 22:37:36 matthew Exp $ */
/*
* Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au>
* All rights reserved.
@@ -61,6 +61,7 @@ fcntl(int fd, int cmd,...)
switch (cmd) {
/* Duplicate a file descriptor: */
case F_DUPFD:
+ case F_DUPFD_CLOEXEC:
/*
* Get the file descriptor that the caller wants to
* use: