-
Notifications
You must be signed in to change notification settings - Fork 284
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
Receive pid that signal was sent from #4075
Comments
It seems this is where the signal handler is setup here: https://github.com/nodejs/node/blob/66b1356ebcf55e477639a52baba3067afd9ea7a0/deps/uv/src/unix/signal.c#L224-L242 and according to the - sa.sa_handler = uv__signal_handler;
- sa.sa_flags = SA_RESTART;
+ sa.sa_sigaction = uv__signal_handler;
+ sa.sa_flags = SA_SIGINFO; I have no real understanding of how this works, this is all based on a couple hours of research that I wrote down here. I'm looking for some guidance about:
Thank you! |
thanks @mehulkar - this is very detailed research work indeed! I will attempt to answer some:
Again, this is a great ground work, and wishing you good luck with working in Node.js! |
I have suspicions that the AIX behaviour is faulty and that there is an AIX bug there but I was unable to find the right person/group within IBM to pursue any further and now I'm outside of IBM. The behaviour on AIX was an outlier -- all other platforms I tested returned the signal information to the handler (see https://github.com/richardlau/signals). |
cc @nodejs/platform-macos PTAL |
It seems there has been no activity on this issue for a while, and it is being closed in 30 days. If you believe this issue should remain open, please leave a comment. |
It seems there has been no activity on this issue for a while, and it is being closed. If you believe this issue should remain open, please leave a comment. |
Details
In the code:
I would like to receive information about where the signal came from. Currently, the callback only receives the string
SIGUSR1
and an int30
. How do I do this?Node.js version
Not applicable.
Example code
No response
Operating system
macOS
Scope
signal handling
Module and version
Not applicable.
The text was updated successfully, but these errors were encountered: