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

add implementation for rt_sigaction, sys_kill and sys_tkill #131

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

TheSayOL
Copy link
Contributor

@TheSayOL TheSayOL commented Jul 3, 2024

No description provided.

sig: c_int,
_sa: *const ctypes::sigaction,
_old: *mut ctypes::sigaction,
_sigsetsize: ctypes::size_t,
) -> c_int {
debug!("sys_rt_sigaction <= sig: {}", sig);
syscall_body!(sys_rt_sigaction, Ok(0))
syscall_body!(sys_rt_sigaction, {
let _sa = unsafe { *_sa };
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it still need "_" before "sa"? All variables have been used.

}

/// send a signal to a thread
pub fn sys_tkill(tid: pid_t, sig: c_int) -> c_int {
Copy link
Contributor

Choose a reason for hiding this comment

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

How does this sys_tkill send a signal to a thread ranther than a process? It seems that no changes have been made with sys_kill.

@ken4647 ken4647 merged commit 0d5ebe0 into syswonder:dev Jul 26, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants