[sudo-users] Is it okay to fork() in a sudo i/o plugin?

Bryan Christ bryan.christ at gmail.com
Mon Feb 4 18:37:13 MST 2019

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.


More information about the sudo-users mailing list