Re: Is it okay to fork() in a sudo i/o plugin?
Bryan Christ <[email protected]>
| Newsgroups | gmane.comp.tools.sudo.user |
|---|---|
| Message-ID | <CAPQiZK_avUJVLG2aicSOBHt=CVmcO1Hx+kznehxiN1Uh7yTgbQ@mail.gmail.com> |
I assumed the open callback would be the right place but am happy for the confirmation. Ty! On Tue, Feb 5, 2019 at 8:14 AM Todd C. Miller <[email protected]> wrote: > On Mon, 04 Feb 2019 22:07:41 -0600, Bryan Christ wrote: > > > That certainly a reasonable approach. At what point is it safe for the > > plugin to fork()? > > It should be safe to do so in either the open function or in one > of the logging functions. All of the I/O plugin functions are > called from the same process context. > > - todd > -- Bryan <>< ____________________________________________________________ sudo-users mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-users