Uh oh!
There was an error while loading. Please reload this page.
doc: add note for handling signal events in trace events - #41438
Conversation
benjamingr
commented
Jan 8, 2022
@nodejs/diagnostics |
benjamingr
commented
Jan 18, 2022
Can someone from diagnostics explain why the signal handler is needed in this case :)? |
Uh oh!
There was an error while loading. Please reload this page.
Flarna
commented
Jan 18, 2022
Reading the linked issues and #22734 tells that flushing the trace events in a signal handler is not trivial and would require quite some work (if possible at all). There is #22883 since a while which asks for a fix. By installing a signal handler from JS the default action of this signal (end process) is not executed anymore. By calling |
e358dfb to
2483455Compare2483455 to
99f3758Comparenodejs-github-bot
commented
Jan 21, 2022
Landed in 806c7c1 |
Keeping in mind issues like #18476 and #14802, I went ahead and added a note to the docs for users to handle signal events properly, so that trace events are correctly logged into files.
I'm happy to make any changes to this PR as needed since it's my first time contributing to the Node.js project.