]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/sysfs.c: use fcntl(..F_DUPFD_CLOEXEC) instead of dup(2)
authorCristian Rodríguez <crrodriguez@opensuse.org>
Fri, 10 Apr 2015 18:57:58 +0000 (15:57 -0300)
committerKarel Zak <kzak@redhat.com>
Tue, 14 Apr 2015 09:38:02 +0000 (11:38 +0200)
commitd1f9c0969eb24d0a5ec5d862bd41b1bd5f3103f0
treeb29132d2450d36276c15d28a20d700e041e6db76
parent63f06be7ecb9fe7e894dfd723450127b75da74de
lib/sysfs.c: use fcntl(..F_DUPFD_CLOEXEC) instead of dup(2)

"The two descriptors do not share file descriptor flags (the
close-on-exec flag).  The close-on-exec flag  for the duplicate descriptor is off"
lib/sysfs.c