Re: Plugins and signal handlers
Bryan Christ <[email protected]>
| Newsgroups | gmane.comp.tools.sudo.user |
|---|---|
| Message-ID | <CAPQiZK_iGOEo_jUmRk=+8QKsJ-AKgQ5YMbc93pVROBK1HoJD2w@mail.gmail.com> |
That makes sense. Thank you. On Tue, Mar 19, 2019 at 4:46 PM Todd C. Miller <[email protected]> wrote: > On Tue, 19 Mar 2019 16:40:59 -0500, Bryan Christ wrote: > > > 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? > > That should work in most cases. Sudo will forward the signal to > the command and wait for it to exit. However, if the command ignores > SIGTERM sudo will keep running. > > However, it is better to just return 0 from the I/O logging plugin > log_* functions if you can. That will cause sudo to kill the command > and exit. > > - todd > -- Bryan <>< ____________________________________________________________ sudo-users mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-users