[sudo-users] Plugins and signal handlers

Todd C. Miller Todd.Miller at sudo.ws
Tue Mar 19 15:39:49 MDT 2019


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


More information about the sudo-users mailing list