#Kill many Go instances
7 messages · Page 1 of 1 (latest)
in unix it would be pkill name no need to write special code inside
pkill main?
the name of your binary (directory name)
you could also potentially change your code so it takes a list of ports and open all of them from a single process
I guess if you are running ./main & then yes, pkill main will kill all of them
Thank you it works