-
Notifications
You must be signed in to change notification settings - Fork 30
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
Fix SIGUSR1 after stdin_fd closed #157
Conversation
this fails to build |
Build fixed and tests added. |
a70c63b
to
2d2284e
Compare
the (new) test failed |
Just shut it down for writing, and save it so that it can later be used for reading. This also ensures deterministic behavior when --use-stdin-socket is used. Previously, the socket would be shut down for reading or writing but not both, depending on whether reading or writing stopped first. This could be quite confusing for callers. Instead, always shut down the socket for both reading and writing, guaranteeing deterministic behavior. This partially reverts a3bbcb5 ("Prefer close() to shutdown()"): the change to use close() is reverted, but the substantial simplification of the code is not. Fixes: a3bbcb5 ("Prefer close() to shutdown()") Fixes: QubesOS/qubes-issues#9183
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #157 +/- ##
==========================================
+ Coverage 77.78% 77.82% +0.04%
==========================================
Files 54 54
Lines 9496 9536 +40
==========================================
+ Hits 7386 7421 +35
- Misses 2110 2115 +5 ☔ View full report in Codecov by Sentry. |
OpenQA test summaryComplete test suite and dependencies: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.2&build=2024050300-4.2&flavor=pull-requests New failures, excluding unstableCompared to: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.2&build=2024050210-4.2&flavor=update
Failed tests7 failures
Fixed failuresCompared to: https://openqa.qubes-os.org/tests/98585#dependencies 1 fixed
Unstable tests
|
Just shut it down for writing, and save it so that it can later be used for reading.
This also ensures deterministic behavior when --use-stdin-socket is used. Previously, the socket would be shut down for reading or writing but not both, depending on whether reading or writing stopped first. This could be quite confusing for callers. Instead, always shut down the socket for both reading and writing, guaranteeing deterministic behavior.
Fixes: a3bbcb5 ("Prefer close() to shutdown()")
Fixes: QubesOS/qubes-issues#9183