Re: Plugins and signal handlers
Bryan Christ <[email protected]>
| Newsgroups | gmane.comp.tools.sudo.user |
|---|---|
| Message-ID | <CAPQiZK8EK0Y5k5PtnDtJj0zYFr9pXSZi4y983pQP=FTy0_rfCA@mail.gmail.com> |
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 <[email protected]> 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 <>< ____________________________________________________________ sudo-users mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-users