Skip to content

fix repeated shutdown issue on linux #104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 20, 2021

Conversation

tomerd
Copy link
Contributor

@tomerd tomerd commented Aug 19, 2021

motivation: repeatedly calling shutdown in linux was broken due to multiple calls to singal() which work on darwin but not linux

changes:

  • conditionalize the call to signal
  • add test

@tomerd tomerd force-pushed the fix/repeating-termination branch 2 times, most recently from 075e968 to 2d5d07d Compare August 19, 2021 03:24
@tomerd tomerd requested a review from yim-lee August 19, 2021 03:24
motivation: repeatedly calling shutdown in linux was broken due to multiple calls to singal() which work on darwin but not linux

changes:
* conditionalize the call to signal to once per process
* add test
@tomerd tomerd force-pushed the fix/repeating-termination branch from 2d5d07d to f1a5378 Compare August 19, 2021 16:07
@tomerd tomerd requested a review from weissi August 19, 2021 20:30
@tomerd
Copy link
Contributor Author

tomerd commented Aug 19, 2021

cc @oc243

@oc243
Copy link

oc243 commented Aug 19, 2021

Thanks so much @tomerd

@tomerd tomerd modified the milestones: 1.0.0-alpha.8, 1.0.0-alpha8 Aug 20, 2021
@tomerd tomerd merged commit 66fb9c0 into swift-server:main Aug 20, 2021
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