signals - #1879
Conversation
|
I can’t reproduce the initial issue on Windows with beta 4. Was it only a problem on Linux? |
|
Haven't tested initial issue on Windows, but have reproduced on Linux and Mac. |
|
/generate-artifacts |
|
@ndeloof it seems |
|
generate-artifacts is for compose.v2 only, we haven't define a comparable workflow for compose-cli |
mat007
left a comment
There was a problem hiding this comment.
Looks good!
Tested on both Mac and Windows (using the CLI from docker/cli#3302).
The OP repro does not work entirely properly on Windows, but it’s an issue with Docker CLI as bypassing compose-cli still exhibits it. I’ll have a look at fixing it there.
In a nutshell the first ctrl-c writes a single INT to the console, but then it appears to be all frozen and a second ctrl-c doesn’t show up. It does work properly if run with -it though.
What I did
removed home-made signal forwarding. Signals are sent from console to the whole process group, so child processes also receive SIGINT.
note: tested on my Mac, Linux and Windows boxes.
works when used to run compose-cli => com.docker.cli => signal_test container as described by #1151
but doesn't work if a compose service is defined to use signal_test, and use
compose run: Ctrl+C on console cancels the context and we can't seeINTlogged on console.so this is at least a partial fix, will require further investigations
Related issue
expected to fix #1151 🤞
(not mandatory) A picture of a cute animal, if possible in relation with what you did