Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7fbd12a

Browse files
committed
Assume os.getppid is always available (elastic#2038)
It's always available since 3.2 and tests are already assuming that.
1 parent 8d29913 commit 7fbd12a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticapm/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def get_service_info(self):
374374
def get_process_info(self):
375375
result = {
376376
"pid": os.getpid(),
377-
"ppid": os.getppid() if hasattr(os, "getppid") else None,
377+
"ppid": os.getppid(),
378378
"title": None, # Note: if we implement this, the value needs to be wrapped with keyword_field
379379
}
380380
if self.config.include_process_args:

0 commit comments

Comments
 (0)