summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_socket.c
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2014-08-31 01:42:37 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2014-08-31 01:42:37 +0000
commiteefcff8d6871007a1a5fbce9970ae23bf2ba219f (patch)
tree81aff12182d6acaf015188abc621b3a8164c7eb2 /sys/kern/uipc_socket.c
parentf86f1cf74c082971f61edab20f1fb1bb918f156e (diff)
Add additional kernel interfaces for setting close-on-exec on fds
when creating them: pipe2(), dup3(), accept4(), MSG_CMSG_CLOEXEC, SOCK_CLOEXEC. Includes SOCK_NONBLOCK support. ok matthew@
Diffstat (limited to 'sys/kern/uipc_socket.c')
-rw-r--r--sys/kern/uipc_socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
index 9e8670d082f..f6ca64c56e0 100644
--- a/sys/kern/uipc_socket.c
+++ b/sys/kern/uipc_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_socket.c,v 1.130 2014/07/13 15:52:38 tedu Exp $ */
+/* $OpenBSD: uipc_socket.c,v 1.131 2014/08/31 01:42:36 guenther Exp $ */
/* $NetBSD: uipc_socket.c,v 1.21 1996/02/04 02:17:52 christos Exp $ */
/*
@@ -777,7 +777,7 @@ dontblock:
mtod(cm, struct cmsghdr *)->cmsg_type ==
SCM_RIGHTS)
error = (*pr->pr_domain->dom_externalize)(cm,
- controllen);
+ controllen, flags);
*controlp = cm;
} else {
/*