Skip to content

Relax the checks/assertions on which PID owns the semaphore#822

Merged
DimCitus merged 1 commit intomasterfrom
fix_semaphore_errors
Oct 20, 2021
Merged

Relax the checks/assertions on which PID owns the semaphore#822
DimCitus merged 1 commit intomasterfrom
fix_semaphore_errors

Conversation

@onderkalaci
Copy link
Copy Markdown
Contributor

It turns out that the checks to ensure which PID owns the semaphore
is too aggressive. The PID might be 0, pid of our own process or
any process above to our PID in the process tree.

So, we simplify the rule. We only terminate the semaphore when
we are owner of the PID. Else, we wait until the owner of the
PID exits (which will eventually happen).

It turns out that the checks to ensure which PID owns the semaphore
is too aggressive. The PID might be 0, pid of our own process or
any process above to our PID in the process tree.

So, we simplify the rule. We only terminate the semaphore when
we are owner of the PID. Else, we wait until the owner of the
PID exits (which will eventually happen).
@onderkalaci onderkalaci requested a review from DimCitus October 20, 2021 07:42
@DimCitus DimCitus added bug Something isn't working Size: S Effort Estimate: Small labels Oct 20, 2021
@DimCitus DimCitus added this to the Sprint 2021 W42 W43 milestone Oct 20, 2021
@DimCitus DimCitus merged commit 382009e into master Oct 20, 2021
@DimCitus DimCitus deleted the fix_semaphore_errors branch October 20, 2021 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Size: S Effort Estimate: Small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants