diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-05 22:04:36 +0200 |
---|---|---|
committer | Austin Foxley <austinf@cetoncorp.com> | 2009-09-18 11:21:25 -0700 |
commit | 12b4c6b14c197397b47122c1a6c60e179d83376f (patch) | |
tree | 2a9021b36d03c76c55bfced8fbb221fa814dbf08 /libpthread/linuxthreads | |
parent | 2b5155d358188649cc7a6653b5968b514fbfe9cf (diff) | |
download | uClibc-alpine-12b4c6b14c197397b47122c1a6c60e179d83376f.tar.bz2 uClibc-alpine-12b4c6b14c197397b47122c1a6c60e179d83376f.tar.xz |
CLOEXEC: use open(CLOEXEC) if exist; do not check fcntl(FD_CLOEXEC) failure
text data bss dec hex filename
- 370 0 0 370 172 libc/misc/dirent/opendir.o
+ 366 0 0 366 16e libc/misc/dirent/opendir.o
- 375 4 0 379 17b libc/pwd_grp/lckpwdf.o
+ 356 4 0 360 168 libc/pwd_grp/lckpwdf.o
- 248 0 0 248 f8 librt/shm.o
+ 209 0 0 209 d1 librt/shm.o
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libpthread/linuxthreads')
-rw-r--r-- | libpthread/linuxthreads/sysdeps/unix/sysv/linux/mq_notify.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libpthread/linuxthreads/sysdeps/unix/sysv/linux/mq_notify.c b/libpthread/linuxthreads/sysdeps/unix/sysv/linux/mq_notify.c index 31d614b40..a44d05135 100644 --- a/libpthread/linuxthreads/sysdeps/unix/sysv/linux/mq_notify.c +++ b/libpthread/linuxthreads/sysdeps/unix/sysv/linux/mq_notify.c @@ -163,8 +163,7 @@ init_mq_netlink (void) return; /* Make sure the descriptor is closed on exec. */ - if (fcntl (netlink_socket, F_SETFD, FD_CLOEXEC) != 0) - goto errout; + fcntl (netlink_socket, F_SETFD, FD_CLOEXEC); } int err = 1; @@ -213,7 +212,6 @@ init_mq_netlink (void) if (err != 0) { - errout: close_not_cancel_no_status (netlink_socket); netlink_socket = -1; } |