Re: [PATCH] Change SIGPIPE's siginfo.si_code from SI_USER toSI_KERNEL.

From: Oleg Nesterov
Date: Wed Jul 03 2013 - 15:59:30 EST


On 07/03, Denys Vlasenko wrote:
>
> @@ -514,7 +514,7 @@ pipe_write(struct kiocb *iocb, const struct iovec *_iov,
> __pipe_lock(pipe);
>
> if (!pipe->readers) {
> - send_sig(SIGPIPE, current, 0);
> + send_sig(SIGPIPE, current, 1);

Honestly, I simply have no idea what makes more sense in this case...
But I am not sure about this user-visible change. It can break
something and for what?

And if you do this then I guess you should also change net/.

Oleg.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/