fix cputime, sys_rt_sigtimedwait and sys_rt_sigreturn#1394
Merged
fslongjin merged 6 commits intoDragonOS-Community:masterfrom Nov 21, 2025
Merged
fix cputime, sys_rt_sigtimedwait and sys_rt_sigreturn#1394fslongjin merged 6 commits intoDragonOS-Community:masterfrom
fslongjin merged 6 commits intoDragonOS-Community:masterfrom
Conversation
Signed-off-by: aLinChe <1129332011@qq.com>
Signed-off-by: aLinChe <1129332011@qq.com>
bfbf985 to
9387d99
Compare
Signed-off-by: aLinChe <1129332011@qq.com>
Signed-off-by: aLinChe <1129332011@qq.com>
fslongjin
reviewed
Nov 20, 2025
| let effective_pending = total_pending.difference(blocked); | ||
|
|
||
| !effective_pending.is_empty() | ||
| } |
Member
There was a problem hiding this comment.
貌似内核里面已经有个这样的函数了,has_pending_signal函数。
Signed-off-by: aLinChe <1129332011@qq.com>
fslongjin
reviewed
Nov 21, 2025
| if pcb.has_pending_signal_fast() { | ||
| drop(preempt_guard); | ||
| restore_saved_sigmask(); | ||
| return Err(SystemError::EINTR); |
Member
There was a problem hiding this comment.
这两行感觉顺序要交换下?这里被调度走的话会不会有其他影响?(包括下面那里也是)
Signed-off-by: aLinChe <1129332011@qq.com>
fslongjin
approved these changes
Nov 21, 2025
fslongjin
added a commit
that referenced
this pull request
Nov 21, 2025
This reverts commit 3be439e.
fslongjin
added a commit
that referenced
this pull request
Nov 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
sys_rt_sigtimedwait:sys_rt_sigreturn::