Skip to content

Exit goroutine when signal is caught.#134

Merged
merlimat merged 1 commit intoapache:masterfrom
cckellogg:perf-stop-chan
Dec 19, 2019
Merged

Exit goroutine when signal is caught.#134
merlimat merged 1 commit intoapache:masterfrom
cckellogg:perf-stop-chan

Conversation

@cckellogg
Copy link
Contributor

@cckellogg cckellogg commented Dec 19, 2019

This change ensures that the go routine listening for the interrupt exists properly. It work before because we exited the program whenever we received a signal from this channel. This change just ensures proper clean up so we don't ever leak a go routine.

@wolfstudy wolfstudy added this to the 0.1.0 milestone Dec 19, 2019
@wolfstudy
Copy link
Member

@cckellogg please provide some description for this change, thanks.

@wolfstudy wolfstudy changed the title Exit go routine when signal is caught. Exit goroutine when signal is caught. Dec 19, 2019
@merlimat merlimat merged commit 1cefc00 into apache:master Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants