From c535f3a8eee7ea63d3d487abb9cb1e6220f345a0 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Tue, 29 Jul 2025 07:54:47 -0500 Subject: T7651: use pid not ppid if not specified The reset_section.py script is used in a limited case for both (1) recovery from an apply error in a config mode script and (2) recovery by a service crash in a failure handler service. In the latter case, the default pid must be os.getpid, not os.getppid, so as not to be called by pid 1. --- src/helpers/reset_section.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/helpers/reset_section.py b/src/helpers/reset_section.py index 7e464afd5..e57068d45 100755 --- a/src/helpers/reset_section.py +++ b/src/helpers/reset_section.py @@ -84,7 +84,7 @@ else: del test -session_id = int(pid) if pid else os.getppid() +session_id = int(pid) if pid else os.getpid() if in_session: # check hint left by vyshim when ConfigError is from apply stage -- cgit v1.2.3