You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
section catches KeyboardInterrupt too, which means you can't break out of scanning cleanly; you have to hold Ctrl-C for a while until you get lucky and get in between the runs.
I think the way to handle this is to add KeyboardInterrupt as a special case, and just raise it. You can probably also sys.stdin.close() in any subprocesses (after fork() but before exec(), which is something you can configure with like, making sure to set stdin=None) that shouldn't be handling input.
The text was updated successfully, but these errors were encountered:
kousu
changed the title
ctrl-c doesn't canc
ctrl-c doesn't cancel
Mar 8, 2018
btw, using multiprocessing probably makes this worse, because it could leave orphan testssl processes running; you need the code that catches KeyboardInterrupt to kill off its children.
The
section catches
KeyboardInterrupt
too, which means you can't break out of scanning cleanly; you have to hold Ctrl-C for a while until you get lucky and get in between the runs.I think the way to handle this is to add KeyboardInterrupt as a special case, and just
raise
it. You can probably also sys.stdin.close() in any subprocesses (after fork() but before exec(), which is something you can configure with like, making sure to setstdin=None
) that shouldn't be handling input.The text was updated successfully, but these errors were encountered: