Re: Plugins and signal handlers
"Todd C. Miller" <[email protected]>
| Newsgroups | gmane.comp.tools.sudo.user |
|---|---|
| Message-ID | <[email protected]> |
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 ____________________________________________________________ sudo-users mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-users