MCPcopy Index your code
hub / github.com/fabioz/PyDev.Debugger / get_ppid

Method get_ppid

_pydevd_bundle/pydevd_api.py:1027–1041  ·  view source on GitHub ↗

Provides the parent pid (even for older versions of Python on Windows).

(self)

Source from the content-addressed store, hash-verified

1025 py_db.variable_presentation = variable_presentation
1026
1027 def get_ppid(self):
1028 """
1029 Provides the parent pid (even for older versions of Python on Windows).
1030 """
1031 ppid = None
1032
1033 try:
1034 ppid = os.getppid()
1035 except AttributeError:
1036 pass
1037
1038 if ppid is None and IS_WINDOWS:
1039 ppid = self._get_windows_ppid()
1040
1041 return ppid
1042
1043 def _get_windows_ppid(self):
1044 this_pid = os.getpid()

Callers 3

settrace_forkedFunction · 0.80
callFunction · 0.80

Calls 1

_get_windows_ppidMethod · 0.95

Tested by

no test coverage detected