]> 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>
Wed, 29 Apr 2015 10:36:45 +0000 (12:36 +0200)
commit07dbddf2ea826fbb4f0409cdf2b96b1dac3ba3df
treed9d7e012ea49146c7e040143e952be999c803466
parent02c7353875c5ab81fa89dea8102466c6b579b2c5
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