shenwei356 / rush

A cross-platform command-line tool for executing jobs in parallel
https://github.com/shenwei356/rush
MIT License
846 stars 63 forks source link

try to solve hang up after typing ctrl-c #46

Closed shenwei356 closed 1 year ago

shenwei356 commented 1 year ago

Hi @bburgin, I'm trying to solve hang after typing Ctrl + C.

 seq 100 | rush 'sleep 1' --eta 

Previously, it hung up, even after checking all child processes. I just added one line to fix it.

I also found it takes a long time to check the child process. So I parallize it, but strangely it would panic when using 16 goroutines. Using eight would not.