Skip to content

Commit

Permalink
Agent/Job: Restore SIGINT to default_int_handler instead of SIG_DFL
Browse files Browse the repository at this point in the history
SIG_DFL seems to exit the process, but we want the default python
handler that raises KeyboardInterrupt instead.
  • Loading branch information
Kuba314 authored and olichtne committed Jan 19, 2024
1 parent 75a4160 commit 3cf1776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lnst/Agent/Job.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def _run(self):

os.setpgrp()
signal.signal(signal.SIGHUP, signal.SIG_DFL)
signal.signal(signal.SIGINT, signal.SIG_DFL)
signal.signal(signal.SIGINT, signal.default_int_handler)
signal.signal(signal.SIGTERM, signal.SIG_DFL)

self._log_ctl.disable_logging()
Expand Down

0 comments on commit 3cf1776

Please sign in to comment.