HelloI am using apache2, mod_wsgi, and django. In my Django code, I do lots of os.system() and subprocess.Popen() calls which may create background processes. My question is, is it possible to configure mod_wsgi to close open file descriptors before doing an exec()? Would apache have some sort of option like this?
I would think that this capability could only be available in daemon mode. Could daemon mode close all file descriptors except 0, 1, 2, and the domain socket to apache?
I know of the subprocess.Popen(..., close_fds=True) argument in python, but I am trying to avoid having to pass this argument for each call.