Is it okay to fork() in a sudo i/o plugin?
Bryan Christ <[email protected]>
| Newsgroups | gmane.comp.tools.sudo.user |
|---|---|
| Message-ID | <CAPQiZK_J+tLrRuOjm=jwQ2GXvDHJpvqPCJ6UjJd-Howi_tC21w@mail.gmail.com> |
I'm writing a plug-in for sudo using the plugin API. Since the logging facility of the plug-in will push data to a remote server, I want to avoid potential blocking situations. Is it reasonable to fork() from an I/O plugin? Obviously I can't install a handler for sigchld to reap processes so I perceive that to be a bit of a problem right out of the gate unless sudo already has a handler that I can count on to do that. -- Bryan <>< ____________________________________________________________ sudo-users mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-users