• Jens Axboe's avatar
    signalfd: convert to ->read_iter() · fbe38120
    Jens Axboe authored
    Rather than use the older style ->read() hook, use ->read_iter() so that
    signalfd can support both O_NONBLOCK and IOCB_NOWAIT for non-blocking
    read attempts.
    
    Split the fd setup into two parts, so that signalfd can mark the file
    mode with FMODE_NOWAIT before installing it into the process table.
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    fbe38120
signalfd.c 8.9 KB