[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 #18 from Jason Vas Dias <jason.vas.dias@xxxxxxxxx> ---
static ssize_t
pipe_write(struct kiocb *iocb, struct iov_iter *from)
{

    if (!pipe->readers) {
           if( (!(filp->f_flags & O_NONBLOCK)) &&
               ((!pipe->sigio_on_write_enabled) || !pipe->sigpipe_sent )
             )
           {    pipe->sigpipe_sent = 1;
                 send_sig(SIGPIPE, current, 0);
        ret = -EPIPE;
        goto out;
           }else
           if(pipe->sigio_on_write_enabled && pipe->sigpipe_sent)
              if ((!(filp->f_flags & O_NONBLOCK)) && wait_for_partner(pipe,
&pipe->r_counter))
        goto err_wr;
           }
        }else
        { 
           pipe->sigpipe_sent = 0;
         ...
        } ...
 }

-- 
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