diff --git a/src/lucky_cli/process_runner.cr b/src/lucky_cli/process_runner.cr index 0f3642ca..5fc64437 100644 --- a/src/lucky_cli/process_runner.cr +++ b/src/lucky_cli/process_runner.cr @@ -31,6 +31,10 @@ module LuckyCli end private def run(process, args) + # When Ctrl+C is pressed, wait for the child process to handle the signal and finish - + # rather than us immediately exiting and leaving it to log "shutting down" messages from the background + Signal::INT.trap { } + process.run command, args, output: STDOUT, error: STDERR,