libuv/src/unix
Ben Noordhuis 06616db362 unix: fix error handling in uv__make_socketpair()
This commit checks that setting the close-on-exec flag on the file
descriptors succeeds, and closes the file descriptors when it fails.

PR-URL: https://github.com/libuv/libuv/pull/2665
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
2020-02-04 16:36:59 +01:00
..
aix-common.c ibmi: implement uv_interface_addresses() 2020-01-21 09:32:11 +01:00
aix.c ibmi: implement uv_interface_addresses() 2020-01-21 09:32:11 +01:00
android-ifaddrs.c android: fix build 2019-10-08 09:20:52 +02:00
async.c unix: fix race condition in uv_async_send() 2019-04-22 16:22:36 +02:00
atomic-ops.h aix: Fix broken cmpxchgi() XL C++ specialization. 2019-09-06 10:17:12 +02:00
bsd-ifaddrs.c build: fix build warning on cygwin 2019-10-04 23:54:06 +02:00
bsd-proctitle.c core,bsd: refactor process_title functions 2018-10-18 10:11:40 +02:00
core.c linux: simplify uv__dup2_cloexec() 2020-02-04 16:36:59 +01:00
cygwin.c src: move uv_free_cpu_info to uv-common.c 2019-08-19 23:01:17 +02:00
darwin-proctitle.c darwin: stop calling SetApplicationIsDaemon() 2020-01-21 09:25:49 +01:00
darwin.c unix: pass sysctl size arg using ARRAY_SIZE macro 2019-12-16 15:55:59 +01:00
dl.c misc: remove unnecessary null pointer checks 2015-11-17 09:18:55 +01:00
freebsd.c unix: pass sysctl size arg using ARRAY_SIZE macro 2019-12-16 15:55:59 +01:00
fs.c unix: squelch fchmod() EPERM on CIFS share 2020-01-07 23:49:45 -05:00
fsevents.c osx,fsevent: clear pointer when deleting it [NFCI] 2020-01-21 12:29:20 -05:00
getaddrinfo.c test,sunos: fix statement not reached warnings 2019-03-16 13:22:16 -04:00
getnameinfo.c unix,win: limit concurrent DNS calls to nthreads/2 2018-08-21 10:48:24 +02:00
haiku.c src: move uv_free_cpu_info to uv-common.c 2019-08-19 23:01:17 +02:00
ibmi.c ibmi: implement uv_interface_addresses() 2020-01-21 09:32:11 +01:00
internal.h freebsd,linux: simplify uv__make_socketpair() 2020-02-04 16:36:59 +01:00
kqueue.c fsevents: stop using fsevents to watch files 2019-09-26 16:01:27 +02:00
linux-core.c unix: handle uv__open_cloexec return value correctly 2020-01-21 20:02:56 +01:00
linux-inotify.c linux: get rid of strncpy() call 2018-12-04 17:08:20 +01:00
linux-syscalls.c linux: simplify uv__accept() 2020-02-04 16:36:59 +01:00
linux-syscalls.h linux: assume presence of SOCK_CLOEXEC flag 2020-02-04 16:36:59 +01:00
loop-watcher.c include,src: introduce UV__ERR() macro 2018-02-08 22:38:02 -05:00
loop.c unix,win: merge handle flags 2018-06-29 22:24:52 +02:00
netbsd.c unix: pass sysctl size arg using ARRAY_SIZE macro 2019-12-16 15:55:59 +01:00
no-fsevents.c include,src: introduce UV__ERR() macro 2018-02-08 22:38:02 -05:00
no-proctitle.c include,src: introduce UV__ERR() macro 2018-02-08 22:38:02 -05:00
openbsd.c unix: pass sysctl size arg using ARRAY_SIZE macro 2019-12-16 15:55:59 +01:00
os390-syscalls.c zos: fix nanosleep() emulation 2019-12-03 19:17:42 -05:00
os390-syscalls.h linux: remove epoll syscall wrappers 2018-09-06 13:07:13 +02:00
os390.c src: move uv_free_cpu_info to uv-common.c 2019-08-19 23:01:17 +02:00
pipe.c pipe: disallow listening on an IPC pipe 2020-01-31 11:09:16 +01:00
poll.c unix: catch some cases of watching fd twice 2018-05-30 13:24:19 +02:00
posix-hrtime.c unix: factor out reusable POSIX hrtime impl 2017-03-03 15:52:42 +01:00
posix-poll.c unix: don't attempt to invalidate invalid fd 2019-02-10 10:11:19 -05:00
process.c unix: fix error handling in uv__make_socketpair() 2020-02-04 16:36:59 +01:00
procfs-exepath.c include,src: introduce UV__ERR() macro 2018-02-08 22:38:02 -05:00
proctitle.c Revert "darwin: speed up uv_set_process_title()" 2019-12-16 15:22:25 +01:00
pthread-fixes.c unix: fix bug in barrier fallback implementation 2016-04-26 09:35:47 +02:00
random-devurandom.c unix: handle uv__open_cloexec return value correctly 2020-01-21 20:02:56 +01:00
random-getentropy.c unix,win: add uv_random() 2019-09-18 08:09:14 +02:00
random-getrandom.c unix,win: add uv_random() 2019-09-18 08:09:14 +02:00
random-sysctl-linux.c netbsd: use KERN_ARND sysctl to get entropy 2019-10-29 13:36:05 +01:00
signal.c unix: fix -Wunused-but-set-variable warning 2019-12-16 15:40:04 +01:00
spinlock.h unix: add spinlock.h 2013-10-20 13:58:34 +02:00
stream.c Revert "aix: replace ECONNRESET with EOF if already closed" 2020-01-21 12:36:11 -05:00
sunos.c src: move uv_free_cpu_info to uv-common.c 2019-08-19 23:01:17 +02:00
sysinfo-loadavg.c unix: factor out reusable sysinfo loadavg impl 2017-05-21 16:12:16 +02:00
sysinfo-memory.c unix: factor out reusable sysinfo memory lookup 2017-05-21 16:12:14 +02:00
tcp.c tcp: add uv_tcp_close_reset method 2019-08-19 23:41:15 +02:00
thread.c build: fix compile error with uClibc 2019-07-02 11:58:15 +02:00
tty.c tty,unix: avoid affecting controlling TTY 2020-01-12 17:40:13 -05:00
udp.c src: android build fix 2020-01-26 17:22:26 +01:00