-
Notifications
You must be signed in to change notification settings - Fork 48
Implement sigtimedwait for use by suckless init #1320
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
base: master
Are you sure you want to change the base?
Changes from 36 commits
a219223
7286e68
e07f7c1
6f5ad93
3d15ce3
1e3744d
1ce829f
000d730
2d7ca28
b386909
fb3eaa3
e41929e
7abe9f9
35a1ecc
c486015
bc5288f
7b0199c
239ca0e
da05dd4
54b38ef
1994eb2
b301a1c
ac3908b
51bbe9f
cbf8c25
29c302b
e597ef4
eff8b00
76ca8f1
c576c73
db00050
4088dd6
cdfc493
f7977d5
97d0591
f9014c9
a5fb873
0c30ce6
86c4f14
3c7670d
4b8edb8
65da74e
b4caf4b
d1df936
59d3c58
c3c4abd
cfab58a
78e955b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -324,7 +324,8 @@ int sleepq_wait_timed(void *wchan, const void *waitpt, mtx_t *mtx, | |
callout_schedule(&td->td_slpcallout, timeout); | ||
} | ||
|
||
td->td_flags |= (timeout > 0) ? TDF_SLPTIMED : TDF_SLPINTR; | ||
td->td_flags |= TDF_SLPINTR; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not familiar with sleepq, but was there a reason why we chose There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I did change the semantics as I think it was a bug that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay, I agree with that, but I also think that @cahirwpz should take a look at that. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it has to do with possible deficiencies in Please note that non-interruptible Perhaps what I wrote above should be redacted and put somewhere into There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To answer the question - the change is ok, since function is documented as follows: /*! \brief Performs interruptible sleep with timeout.
*
* Timed sleep is also interruptible. [...]
*/ |
||
td->td_flags |= (timeout > 0) ? TDF_SLPTIMED : 0; | ||
cahirwpz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
sq_enter(td, sc, wchan, waitpt); | ||
|
||
/* After wakeup, only one of the following flags may be set: | ||
|
Uh oh!
There was an error while loading. Please reload this page.