[sudo-users] Plugins and signal handlers

Bryan Christ bryan.christ at gmail.com
Tue Mar 19 15:43:30 MDT 2019


Okay.  So now the question is which one is more work :)

On Tue, Mar 19, 2019 at 4:39 PM Todd C. Miller <Todd.Miller at sudo.ws> 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
<><


More information about the sudo-users mailing list