Block sidecar notification signal while sleeping#3656
Conversation
Otherwise users may sleep a lot less than they expect. Signed-off-by: Bob Weinand <[email protected]>
|
✨ Fix all issues with BitsAI or with Cursor
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3656 +/- ##
==========================================
- Coverage 62.21% 62.11% -0.11%
==========================================
Files 141 141
Lines 13387 13387
Branches 1753 1753
==========================================
- Hits 8329 8315 -14
- Misses 4260 4273 +13
- Partials 798 799 +1 see 3 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Signed-off-by: Bob Weinand <[email protected]>
morrisonlevi
left a comment
There was a problem hiding this comment.
Jumping through the macros, this is specifically blocking SIGVTALRM by using dd_handle_signal, yes? If I understand it right, you do not set and restore the previous set, you simply call block and unblock on SIGVTALRM. My understanding is that this should be okay but it seems a little shaky, should we not be saving and restoring?
|
Why? I don't want to interfere with any possible sigmask operations happening during the calls? (except, obviously, for sigvtalrm) |
|
Yes, I didn't think about some other wrapper also masking off a signal. Correct. Approved. |
Otherwise users may sleep a lot less than they expect.