FD_CLOEXEC support for eventfd, signalfd, timerfd
authorUlrich Drepper <drepper@redhat.com>
Wed, 21 Nov 2007 07:28:50 +0000 (02:28 -0500)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 22 Jan 2008 09:35:00 +0000 (10:35 +0100)
commitbf2acbd813ea090f4c0bde7c6ea4d7ec0e7643e9
treece6ef1633b2818ef72fb0c6ee9441763910b818f
parent6cb65c81d9fe1a8c7166641623837fc5e482337d
FD_CLOEXEC support for eventfd, signalfd, timerfd

This patch adds support to set the FD_CLOEXEC flag for the file descriptors
returned by eventfd, signalfd, timerfd.

 fs/anon_inodes.c              |   15 +++++++++++----
 fs/eventfd.c                  |    5 +++--
 fs/signalfd.c                 |    6 ++++--
 fs/timerfd.c                  |    6 ++++--
 include/asm-x86/ia32_unistd.h |    3 +++
 include/linux/anon_inodes.h   |    3 +++
 include/linux/indirect.h      |    3 +++
 7 files changed, 31 insertions(+), 10 deletions(-)

Signed-off-by: Jens Axboe <axboe@axboetest.dk.oracle.com>
fs/anon_inodes.c
fs/eventfd.c
fs/signalfd.c
fs/timerfd.c
include/asm-x86/ia32_unistd.h
include/linux/anon_inodes.h
include/linux/indirect.h