feat: add sys_clock_nanosleep, tgkill, tkill#1307
Merged
fslongjin merged 5 commits intoDragonOS-Community:masterfrom Oct 8, 2025
Merged
feat: add sys_clock_nanosleep, tgkill, tkill#1307fslongjin merged 5 commits intoDragonOS-Community:masterfrom
fslongjin merged 5 commits intoDragonOS-Community:masterfrom
Conversation
Member
fslongjin
commented
Oct 7, 2025
- 新增 tkill 和 tgkill 系统调用:实现线程信号发送功能
- 新增 pause 系统调用:实现进程暂停等待信号功能
- 优化睡眠相关系统调用:改进 nanosleep 和 clock_nanosleep 实现
- 完善测试覆盖:添加单元测试用例
- 添加 clock_nanosleep 系统调用实现,支持相对和绝对时间睡眠 - 完善信号中断后的系统调用重启机制,特别是 ERESTART_RESTARTBLOCK 的处理 - 为 nanosleep 添加重启块支持,实现 SA_RESTART 标志的语义 - 添加 clock_nanosleep 的测试用例 - 修复 TKILL 系统调用返回 ENOSYS 而非 0 Signed-off-by: longjin <longjin@DragonOS.org>
- 添加 tkill 和 tgkill 系统调用及相关信号处理功能 - 实现 pause 系统调用 - 改进 nanosleep 和 clock_nanosleep 功能 - 添加相关测试用例 Signed-off-by: longjin <longjin@DragonOS.org>
- 重构nanosleep函数中was_interrupted变量的赋值逻辑 - 移除clock_nanosleep和nanosleep函数中的调试日志输出 Signed-off-by: longjin <longjin@DragonOS.org>
c387be1 to
073b11f
Compare
- 消除 loongarch64、riscv64 和 x86_64 架构中的重复 SigCode 定义 - 统一信号代码处理逻辑到 signal_types.rs 模块 - 更新相关文件的导入路径以适应新的 SigCode 位置 Signed-off-by: longjin <longjin@DragonOS.org>
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.