Hello I 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. Thanks -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To view this discussion on the web visit https://groups.google.com/d/msg/modwsgi/-/Ao7qlCwhirIJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
