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

sigaction does not respect SA_SIGINFO #12

Open
Arshia001 opened this issue Aug 16, 2023 · 0 comments
Open

sigaction does not respect SA_SIGINFO #12

Arshia001 opened this issue Aug 16, 2023 · 0 comments

Comments

@Arshia001
Copy link

When setting a signal handler via sigaction, if the SA_SIGINFO flag is specified, the callback's signature should be void callback(int signo, siginfo_t *info, void *context) instead of the usual void callback(int signo) (see: https://man7.org/linux/man-pages/man2/sigaction.2.html#DESCRIPTION). This is not respected by the current implementation, so when the signal is received, calling the callback function results in indirect call type mismatch.

Expected behaviour (correct): SA_SIGINFO should be respected. Note this requires the generation of the siginfo_t struct which holds data that may or may not be available to a wasm module.

Expected behaviour (quick-n-dirty or if otherwise impossible to implement the correct behaviour): An error should be reported from sigaction indicating that SA_SIGINFO is not available in wasm.

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

No branches or pull requests

1 participant