This fix makes the terminal not hang anymore, but additional work will be necessary to send SIGINT (Ctrl+C) signals to child processes. The SIGINT signal is received by the wrapping script /bin/run, which doesn't have direct access to the process ID of children processes to kill them. A possible solution may be to use an AbortController on any spawned sub-process.
Also, the DockerOptimizer can now listen to the Ctrl+C keypress and kill the running container.
Closes #246
This fix makes the terminal not hang anymore, but additional work will be necessary to send
SIGINT
(Ctrl+C
) signals to child processes. TheSIGINT
signal is received by the wrapping script/bin/run
, which doesn't have direct access to the process ID of children processes to kill them. A possible solution may be to use an AbortController on any spawned sub-process.Also, the
DockerOptimizer
can now listen to theCtrl+C
keypress and kill the running container.