[sudo-users] Plugins and signal handlers
Todd C. Miller
Todd.Miller at sudo.ws
Tue Mar 19 15:31:50 MDT 2019
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
More information about the sudo-users
mailing list