Re: Plugins and signal handlers

Bryan Christ <[email protected]>
Newsgroups gmane.comp.tools.sudo.user
Message-ID <CAPQiZK_SnXpau9E+4d3xKDdxYhwO1+xcQfQ1LoYUvKruRScPRQ@mail.gmail.com>
Okay.  So now the question is which one is more work :)

On Tue, Mar 19, 2019 at 4:39 PM Todd C. Miller <[email protected]> wrote:

> On Tue, 19 Mar 2019 15:31:50 -0600, "Todd C. Miller" wrote:
>
> > That would probably cause problems.  Sudo sets SIGPIPE to SIG_IGN
> > and expects to receive EPIPE when writing to a closed pipe.
>
> I should qualify this.  If you saved/restore the old SIGPIPE handler
> on entry/exit from your plugin functions it will not interfere with
> sudo.
>
>  - todd
>


-- 
Bryan
<><
____________________________________________________________
sudo-users mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
https://www.sudo.ws/mailman/listinfo/sudo-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.