[sudo-users] Plugins and signal handlers

Bryan Christ bryan.christ at gmail.com
Tue Mar 19 15:40:59 MDT 2019


No.  I could do that.  I just have to put checks in several places.

And if I need to kill the sudo process itself, should I raise SIGTERM.
would that be sufficient?

On Tue, Mar 19, 2019 at 4:31 PM Todd C. Miller <Todd.Miller at sudo.ws> wrote:

> On Tue, 19 Mar 2019 16:26:51 -0500, Bryan Christ wrote:
>
> > What are the ramifications if my I/O plugin installs a signal handler for
> > SIGPIPE?  Would that trample a handler that sudo already has installed?
>
> That would probably cause problems.  Sudo sets SIGPIPE to SIG_IGN
> and expects to receive EPIPE when writing to a closed pipe.
>
> Is there any reason you can't just check errno for EPIPE instead?
>
>  - todd
>


-- 
Bryan
<><


More information about the sudo-users mailing list