Skip to content

Commit

Permalink
Fix successive SIGCHLD
Browse files Browse the repository at this point in the history
Fixes: UnboundLocalError: local variable 'pid' referenced before assignment
  • Loading branch information
bersace committed Nov 8, 2024
1 parent c6f96b2 commit 1b0de8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/temboardui/toolkit/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def sigchld_handler(self, *a):
if pid == 0: # Still alive
continue
except ChildProcessError:
pass
pid = self.pids.get("name", "<unknown>")

logger.warning(
"Background service dead. Restarting. service=%s pid=%s", name, pid
Expand Down

0 comments on commit 1b0de8d

Please sign in to comment.