diff options
author | 2003-10-22 00:25:42 +0000 | |
---|---|---|
committer | 2003-10-22 00:25:42 +0000 | |
commit | 12a42e239385515c4e447797ac16abc50595ddf3 (patch) | |
tree | 846bb035c934e6f1961585d014ca741a92a49740 /lib/libpthread/sys | |
parent | When about to do an execve(), don't bother resetting the O_NONBLOCK flag (diff) | |
download | wireguard-openbsd-12a42e239385515c4e447797ac16abc50595ddf3.tar.xz wireguard-openbsd-12a42e239385515c4e447797ac16abc50595ddf3.zip |
Add wrapper for kqueue() to keep track of the allocated fd and allow it to
be closed. This fixes a file descriptor leak when closing a kqueue() fd.
from FreeBSD
ok marc@
Diffstat (limited to 'lib/libpthread/sys')
-rw-r--r-- | lib/libpthread/sys/Makefile.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/sys/Makefile.inc b/lib/libpthread/sys/Makefile.inc index 9aad9340db2..633c31d8b61 100644 --- a/lib/libpthread/sys/Makefile.inc +++ b/lib/libpthread/sys/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.11 2003/07/22 17:15:12 brad Exp $ +# $OpenBSD: Makefile.inc,v 1.12 2003/10/22 00:25:42 brad Exp $ .PATH: ${SRCDIR}/sys ${SRCDIR}/arch/${MACHINE_ARCH} @@ -23,8 +23,8 @@ HIDDEN_SYSCALLS= accept.o bind.o close.o connect.o dup.o dup2.o \ execve.o fchflags.o fchmod.o fchown.o fcntl.o \ flock.o fpathconf.o fstat.o fstatfs.o fsync.o getdirentries.o \ getlogin.o getpeername.o getsockname.o getsockopt.o ioctl.o kevent.o \ - listen.o msync.o nanosleep.o open.o pipe.o poll.o read.o readv.o \ - recvfrom.o recvmsg.o sched_yield.o select.o sendmsg.o sendto.o \ + kqueue.o listen.o msync.o nanosleep.o open.o pipe.o poll.o read.o \ + readv.o recvfrom.o recvmsg.o sched_yield.o select.o sendmsg.o sendto.o \ setsockopt.o shutdown.o sigaction.o sigaltstack.o \ sigprocmask.o sigsuspend.o \ socket.o socketpair.o wait4.o write.o writev.o \ |