Skip to content

Commit

Permalink
Added signal handling to exec for FLINC
Browse files Browse the repository at this point in the history
  • Loading branch information
sranasir committed Feb 1, 2024
1 parent a4f2018 commit d1c57d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sciunit2/command/exec_/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
from getopt import getopt
from pkg_resources import resource_filename

# for FLINC, to avoid SIGINT causing KeyboardInterruptException
# and exiting sciunit execution
import signal
signal.signal(signal.SIGINT, lambda *_: None)

class ExecCommand(CommitMixin, AbstractCommand):
name = 'exec'
Expand Down

0 comments on commit d1c57d7

Please sign in to comment.