[Bug 95331] fcntl.2 + sigaction.2 + signal.7 need further information about use of a SA_SIGINFO signal handler that uses si->si_fd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=95331

--- Comment #14 from Jason Vas Dias <jason.vas.dias@xxxxxxxxx> ---
Also in pipe poll :

    if (filp->f_mode & FMODE_WRITE) {
        mask |= (nrbufs < pipe->buffers) ? POLLOUT | POLLWRNORM : 0;
        /*
         * Most Unices do not set POLLERR for FIFOs but on Linux they
         * behave exactly like pipes for poll().
         */
        if ((!pipe->readers) &&( (!pipe->sigio_on_write_enabled) ||
(pipe->last_readers != 0)))
            mask |= POLLERR;
    }



Also in pipe_read(), perhaps it should make the call :

   if (do_wakeup) {
            wake_up_interruptible_sync_poll(&pipe->wait, POLLOUT | POLLWRNORM);
             kill_fasync(&pipe->fasync_writers, SIGIO, POLL_OUT);
        }

 BEFORE it does the read ? Else how is the writer meant to know it has a new
reader ?

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux