Skip to content
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: 修复了do execve 加载程序失败时,没能正确返回错误码给用户态的问题 #1042

Merged

Conversation

fslongjin
Copy link
Member

@dragonosbot
Copy link

@fslongjin: no appropriate reviewer found, use r? to override

@github-actions github-actions bot added the Bug fix A bug is fixed in this pull request label Nov 11, 2024
Copy link
Collaborator

@MemoryShore MemoryShore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

系统调用返回时错误码没有设置
image

kernel/src/process/syscall.rs Show resolved Hide resolved
@fslongjin
Copy link
Member Author

系统调用返回时错误码没有设置 image

这个是把正确的设置为0。错误的在外面统一处理了。
image

@dragonosbot dragonosbot added O-riscv64 Target: riscv64 O-x86_64 Target: x86_64 labels Nov 12, 2024
@fslongjin
Copy link
Member Author

@MemoryShore 修了,麻烦看看~

@fslongjin fslongjin merged commit 0f094e5 into DragonOS-Community:master Nov 12, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug fix A bug is fixed in this pull request O-riscv64 Target: riscv64 O-x86_64 Target: x86_64
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants