Skip to content

Commit

Permalink
Minor correction
Browse files Browse the repository at this point in the history
  • Loading branch information
aman-goel committed Nov 5, 2024
1 parent 910e122 commit 38a20b0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions avr_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,11 @@ def terminate_ps(pid_s):
valid, pid = is_valid_pid(pid_s)
if (valid):
if (check_pid(pid)):
os.kill(pid, signal.SIGTERM)
os.kill(pid, signal.SIGKILL)
try:
os.kill(pid, signal.SIGTERM)
os.kill(pid, signal.SIGKILL)
except ProcessLookupError:
pass
#else:
#assert(0)

Expand Down

0 comments on commit 38a20b0

Please sign in to comment.