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

src: set SA_SIGINFO flag when using sa_sigaction #34648

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

richardlau
Copy link
Member

For sigaction() the SA_SIGINFO flag should be set when setting
the handler via the sa_sigaction member of the sigaction struct.

This unfortunately doesn't fix #34410 but AFAICT looks correct based
on the sigaction() docs.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label Aug 6, 2020
@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

This comment has been minimized.

src/node.cc Outdated Show resolved Hide resolved
For `sigaction()` the `SA_SIGINFO` flag should be set when setting
the handler via the `sa_sigaction` member of the `sigaction` struct.
@richardlau richardlau added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 6, 2020
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 6, 2020
@nodejs-github-bot

This comment has been minimized.

src/node.cc Outdated Show resolved Hide resolved
Co-authored-by: James M Snell <jasnell@gmail.com>
@richardlau richardlau added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 6, 2020
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 6, 2020
@nodejs-github-bot
Copy link
Collaborator

@richardlau richardlau added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. and removed author ready PRs that have at least one approval, no pending requests for changes, and a CI started. labels Aug 6, 2020
@richardlau
Copy link
Member Author

So I'm not sure why but it looks like on AIX if reset_handler is set then all members of the siginfo argument passed to the handler are 0. @nodejs/platform-aix any ideas?

@richardlau
Copy link
Member Author

So I'm not sure why but it looks like on AIX if reset_handler is set then all members of the siginfo argument passed to the handler are 0. @nodejs/platform-aix any ideas?

FWIW I've distilled the problem down to https://github.com/richardlau/signals

@aduh95 aduh95 added the request-ci Add this label to start a Jenkins CI on a PR. label Nov 8, 2020
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Nov 8, 2020
@nodejs-github-bot
Copy link
Collaborator

@aduh95
Copy link
Contributor

aduh95 commented May 5, 2024

This needs a rebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

addons/register-signal-handler/test and abort/test-addon-register-signal-handler failed
6 participants