Home
last modified time | relevance | path

Searched refs:preexec_fn (Results 1 – 25 of 37) sorted by relevance

12

/external/python/cpython3/Modules/
D_posixsubprocess.c446 PyObject *preexec_fn, in child_exec() argument
542 if (preexec_fn != Py_None && preexec_fn_args_tuple) { in child_exec()
544 result = PyObject_Call(preexec_fn, preexec_fn_args_tuple, NULL); in child_exec()
617 PyObject *env_list, *preexec_fn; in subprocess_fork_exec() local
647 &preexec_fn)) in subprocess_fork_exec()
650 if ((preexec_fn != Py_None) && in subprocess_fork_exec()
675 if (preexec_fn != Py_None) { in subprocess_fork_exec()
840 if (preexec_fn != Py_None) { in subprocess_fork_exec()
857 if (preexec_fn != Py_None) { in subprocess_fork_exec()
871 py_fds_to_keep, preexec_fn, preexec_fn_args_tuple); in subprocess_fork_exec()
/external/chromium-trace/catapult/devil/devil/utils/
Dcmd_helper.py117 preexec_fn = None
120 preexec_fn = lambda: signal.signal(signal.SIGPIPE, signal.SIG_DFL) function
132 preexec_fn=preexec_fn
150 preexec_fn=preexec_fn,
/external/autotest/client/cros/audio/
Dcmd_utils.py222 preexec_fn = None
224 preexec_fn = lambda: _run_as(run_as) function
229 env=env, preexec_fn=preexec_fn)
/external/llvm-project/lldb/third_party/Python/module/pexpect-4.6/pexpect/
Dpopen_spawn.py23 codec_errors='strict', preexec_fn=None): argument
42 cwd=cwd, preexec_fn=preexec_fn, env=env)
Dpty_spawn.py38 ignore_sighup=False, echo=True, preexec_fn=None, argument
204 self._spawn(command, args, preexec_fn, dimensions)
239 def _spawn(self, command, args=[], preexec_fn=None, dimensions=None): argument
285 kwargs = {'echo': self.echo, 'preexec_fn': preexec_fn}
290 if preexec_fn is not None:
291 preexec_fn()
/external/python/cpython2/Lib/
Dsubprocess.py336 preexec_fn=None, close_fds=False, shell=False, argument
346 if preexec_fn is not None:
389 self._execute_child(args, executable, preexec_fn, close_fds,
590 def _execute_child(self, args, executable, preexec_fn, close_fds, argument
900 def _execute_child(self, args, executable, preexec_fn, close_fds, argument
988 if preexec_fn:
989 preexec_fn()
1294 p = Popen(["id"], preexec_fn=lambda: os.setuid(100))
Dwebbrowser.py198 p = subprocess.Popen(cmdline, close_fds=True, preexec_fn=setsid)
238 stderr=inout, preexec_fn=setsid)
380 preexec_fn=setsid)
393 preexec_fn=setsid)
/external/autotest/client/profilers/top/
Dtop.py34 preexec_fn=os.setpgrp,
/external/toolchain-utils/cros_utils/
Dno_pseudo_terminal_test.py31 self._strace_process = subprocess.Popen(args, preexec_fn=os.setpgrp)
Dcommand_executer.py111 preexec_fn=os.setsid,
634 preexec_fn=os.setsid)
/external/autotest/client/cros/cellular/pseudomodem/
Dpseudomodem_context.py202 preexec_fn=PseudoModemManagerContext._SetUserModem,
209 preexec_fn=PseudoModemManagerContext._SetUserModem,
/external/grpc-grpc/tools/run_tests/python_utils/
Dstart_port_server.py81 args, env=env, preexec_fn=os.setsid, close_fds=True)
/external/rust/crates/grpcio-sys/grpc/tools/run_tests/python_utils/
Dstart_port_server.py88 preexec_fn=os.setsid,
/external/parameter-framework/upstream/tools/clientSimulator/clientsimulator/testGenerator/
DSubprocessLogger.py155 preexec_fn=self.__subProcPreExec,
/external/llvm-project/lldb/third_party/Python/module/ptyprocess-0.6.0/ptyprocess/
Dptyprocess.py180 cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, argument
268 if preexec_fn is not None:
270 preexec_fn()
/external/python/cpython3/Lib/
Dsubprocess.py754 preexec_fn=None, close_fds=True, argument
777 if preexec_fn is not None:
947 self._execute_child(args, executable, preexec_fn, close_fds,
1330 def _execute_child(self, args, executable, preexec_fn, close_fds, argument
1659 def _execute_child(self, args, executable, preexec_fn, close_fds, argument
1695 and preexec_fn is None
1761 preexec_fn)
/external/clang/tools/scan-view/share/
Dstartfile.py59 preexec_fn=setsid, startupinfo=startupinfo)
/external/llvm-project/clang/tools/scan-view/share/
Dstartfile.py62 preexec_fn=setsid, startupinfo=startupinfo)
/external/python/cpython2/Lib/test/
Dtest_subprocess.py878 preexec_fn=lambda: os.putenv("FRUIT", "apple"))
889 self, args, executable, preexec_fn, close_fds, cwd, env, argument
896 self, args, executable, preexec_fn, close_fds,
927 stderr=subprocess.PIPE, preexec_fn=raise_it)
1333 preexec_fn=lambda: 1)
/external/python/cpython3/Lib/test/
Dtest_subprocess.py2001 preexec_fn=lambda: os.putenv("FRUIT", "apple"))
2010 preexec_fn=raise_it)
2058 stderr=subprocess.PIPE, preexec_fn=raise_it)
2072 preexec_fn=lambda: None)
2079 preexec_fn=lambda: None)
2085 preexec_fn=lambda: None)
2090 preexec_fn=lambda: None)
2112 preexec_fn=lambda: None)
2514 preexec_fn=prepare)
2989 preexec_fn=lambda: os.dup2(1, fd))
[all …]
/external/libxkbcommon/test/
Dtool-option-parsing.py56 p = subprocess.run(args, preexec_fn=_disable_coredump,
/external/perfetto/tools/
Drecord_android_trace251 proc = subprocess.Popen(cmd, stdin=stdin, stdout=stdout, preexec_fn=setpgrp)
/external/chromium-trace/catapult/common/py_utils/py_utils/
Dwebpagereplay_go_server.py312 preexec_fn=(_ResetInterruptHandler if is_posix else None))
/external/llvm-project/lldb/packages/Python/lldbsuite/test/test_runner/
Dprocess_control.py309 preexec_fn=preexec_func)
/external/python/cpython3/Doc/library/
Dsubprocess.rst339 stderr=None, preexec_fn=None, close_fds=True, shell=False, \
474 If *preexec_fn* is set to a callable object, this object will be called in the
480 The *preexec_fn* parameter is not safe to use in the presence of threads
489 parameter rather than doing it in a *preexec_fn*.
491 common use of *preexec_fn* to call os.setsid() in the child.
495 The *preexec_fn* parameter is no longer supported in subinterpreters.

12