Skip to content

select! macro don't seems to work with blocking tasks #5377

Answered by taorepoara
taorepoara asked this question in Q&A
Discussion options

You must be logged in to vote

I have made some other tests and found out that the problem was only with docker compose command. I have better looked at the process list and docker compose runs a sub-process docker-compose.

The process tree look like this:

my-cli`
--> docker compose logs -f
     --> docker-compose logs -f

The select! actually works fine, the problem comes from the docker command. It does not stop the sub-process when it's killed, so the docker-compose logs -f command remains as an orphan.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@taorepoara
Comment options

Comment options

You must be logged in to vote
1 reply
@taorepoara
Comment options

Answer selected by taorepoara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants