Skip to content

Commit

Permalink
send SIGINT to systemd worker so that it can do the cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed May 8, 2024
1 parent bfbc3c3 commit 4154053
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lilac2/systemd.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def poll_rusage(name: str, deadline: float) -> tuple[RUsage, bool]:
finally:
if timedout:
logger.debug('killing worker service')
subprocess.run(['systemctl', '--user', 'kill', '--signal=SIGKILL', name])
subprocess.run(['systemctl', '--user', 'kill', '--signal=SIGINT', name])
logger.debug('stopping worker service')
# stop whatever may be running (even from a previous batch)
subprocess.run(['systemctl', '--user', 'stop', '--quiet', name])
Expand Down

0 comments on commit 4154053

Please sign in to comment.