Lines Matching refs:preexec_fn
566 PyObject *preexec_fn,
676 if (preexec_fn != Py_None && preexec_fn_args_tuple) {
678 result = PyObject_Call(preexec_fn, preexec_fn_args_tuple, NULL);
685 err_msg = "Exception occurred in preexec_fn.";
692 /* close FDs after executing preexec_fn, which might open FDs */
770 PyObject *preexec_fn,
782 assert(preexec_fn == Py_None);
806 if (preexec_fn != Py_None) {
821 preexec_fn, preexec_fn_args_tuple);
832 PyObject *env_list, *preexec_fn;
865 &preexec_fn, &allow_vfork))
868 if ((preexec_fn != Py_None) &&
871 "preexec_fn not supported within subinterpreters");
892 /* We need to call gc.disable() when we'll be calling preexec_fn */
893 if (preexec_fn != Py_None) {
1041 if (preexec_fn != Py_None) {
1054 if (preexec_fn == Py_None && allow_vfork &&
1081 preexec_fn, preexec_fn_args_tuple);
1149 preexec_fn)\n\
1158 The preexec_fn, if supplied, will be called immediately before closing file\n\
1160 WARNING: preexec_fn is NOT SAFE if your application uses threads.\n\