Skip to content

Commit

Permalink
ctypes ignores callback exceptions; kill process instead
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesBuchner committed Feb 5, 2021
1 parent f53690f commit eadb4e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymultinest/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ def _load_library(libname):
import signal, sys
import inspect

def interrupt_handler(signal, frame):
def interrupt_handler(recvsignal, frame):
sys.stderr.write('ERROR: Interrupt received: Terminating\n')
sys.exit(1)
os.kill(os.getpid(), signal.SIGTERM)

def run(LogLikelihood,
Prior,
Expand Down

0 comments on commit eadb4e3

Please sign in to comment.