Closed 3rock618 closed 4 years ago
It's much easier to keep the gateway script running in it's own process and develop the rest in another script. That way there's no startup time when testing.
if you hit ctrl+c now, the proc that was launched in IBC is killed because it gets sent SIGINT.
Yes, and I rather keep it that way.
if you hit ctrl+c now, the proc that was launched in IBC is killed because it gets sent SIGINT.
I would like to suppress this because I often exit my program loop and debug in REPL. I did some research and looks like the accepted solution is to re-route
SIGINT
usingsubprocess.Popen.preexec_fn
. Or inasyncio
it would be:However, with the current api there's no way to do this. I would like to propose adding one of the following changes Solution 1: in
ibcontroller.py
:then I can call
ibc.start(lambda:signal.signal(signal.SIGINT, signal.SIG_IGN))
or alternatively solution 2, this can be baked in:and then I can set this up with
ibc.suppressSIGINT=True