Skip to content

Commit

Permalink
chore(store): Give a name to the timeout watchdog thread
Browse files Browse the repository at this point in the history
In some cases, spurious exceptions may crop up in the outputs when
something goes wrong, and in those cases, threads are usually just given
an automatic name like `Thread-1` or so. This patch adds a unique name
to the store watchdog so it's clear if that causes an exception (it
shouldn't).
  • Loading branch information
whisperity committed Nov 7, 2023
1 parent f664794 commit 2a5d323
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/client/codechecker_client/cmd/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,7 @@ def _signal_handler(sig: int, frame):
pid = os.getpid()
timer = Timer(timeout.total_seconds(),
lambda: os.kill(pid, trap))
timer.name = "StoreTimeoutWatcher"
LOG.debug("Set up timer for %d seconds (%s) for PID %d",
timeout.total_seconds(), str(timeout), pid)
try:
Expand Down

0 comments on commit 2a5d323

Please sign in to comment.