scan-cli-plugin icon indicating copy to clipboard operation
scan-cli-plugin copied to clipboard

docker scan does not handle Ctrl-C

Open gtardif opened this issue 4 years ago • 2 comments

gtardif avatar Mar 31 '21 15:03 gtardif

@thaJeztah I could not reproduce this, did you actually Ctrl-C in a terminal or was it sending a kill signal to the docker scan invocation ? I think sending a kill signal, the docker-cli will not propagate the signal to CLI plugins, but in a terminal, Ctrl-C will send the signal to processes in the same process group, therefore also cancelling the cli plugin execution. To handling the kill signal we need a fix in docker/cli on CLI plugins in order to forward signals to child processes (I'd like to issue a PR when I have time on this).

gtardif avatar Apr 06 '21 11:04 gtardif

Actually I can reproduce (only on linux, behaviour is different on mac/win).

gtardif avatar Apr 06 '21 11:04 gtardif