You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to receive information about where the signal came from. Currently, the callback only receives the string SIGUSR1 and an int 30. How do I do this?
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:
Whether this is possible to do already, and I'm looking in the wrong place
If it did require a patch to "make it work", where else would I also have to patch such that the process.on callback actually gets the information? (I tried building node with the patch above and it didn't Just Work™)
Is it desirable to add this information into signal handling always or with an option? Changing the callback signature is a breaking change, so I imagine it would need an option.
If I'm right about how this works, is there some history here about why it works this way, or is it entirely dependent on libuv (and should I ask someone there?)
this is definitely a useful info, and desirable to add it always. However, point 2 poses challenge IMO. Please feel free to resurrect 34648 and see if you can progress.
no idea.
/cc @richardlau , who may be able to provide additional insight as well as guidance.
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).
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.
If you need further assistance or have questions, you can also search for similar issues on Stack Overflow.
Make sure to look at the README file for the most updated links.
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.
If you need further assistance or have questions, you can also search for similar issues on Stack Overflow.
Make sure to look at the README file for the most updated links.
Activity
mehulkar commentedon Jan 17, 2023
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
sigactiondocs, it needs to setsa_sigactionand aSA_SIGINFOflag.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:
process.oncallback actually gets the information? (I tried building node with the patch above and it didn't Just Work™)libuv(and should I ask someone there?)Thank you!
gireeshpunathil commentedon Jan 17, 2023
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!
richardlau commentedon Jan 17, 2023
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).
preveen-stack commentedon Aug 25, 2023
cc @nodejs/platform-macos PTAL
github-actions commentedon May 7, 2024
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.
If you need further assistance or have questions, you can also search for similar issues on Stack Overflow.
Make sure to look at the README file for the most updated links.
github-actions commentedon Jun 7, 2024
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.
If you need further assistance or have questions, you can also search for similar issues on Stack Overflow.
Make sure to look at the README file for the most updated links.