Skip to content
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

Prevent race condition on starting an already running service #2252

Merged
merged 2 commits into from
Jul 5, 2021

Conversation

refs
Copy link
Member

@refs refs commented Jul 2, 2021

When attempting to run a service through the runtime that is currently running and fails to start, a race condition still redirect os Interrupt signals to a closed channel.

Steps to reproduce:

  1. ocis server
  2. ocis run proxy
  3. ctrl+c on step 1

You should see a panic message on screen:

image

Not cool.

@update-docs
Copy link

update-docs bot commented Jul 2, 2021

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@sonarcloud
Copy link

sonarcloud bot commented Jul 2, 2021

Please retry analysis of this Pull-Request directly on SonarCloud.

@refs refs merged commit 5ae2cdb into master Jul 5, 2021
@refs refs deleted the channels-race-condition branch July 5, 2021 10:44
ownclouders pushed a commit that referenced this pull request Jul 5, 2021
Merge: b3bae59 e30f3a3
Author: Alex Unger <6905948+refs@users.noreply.github.com>
Date:   Mon Jul 5 12:44:27 2021 +0200

    Merge pull request #2252 from owncloud/channels-race-condition
@micbar micbar mentioned this pull request Jul 13, 2021
21 tasks
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.

2 participants