From d43165b11f5ea1a8c9b77116f77cd69980085f49 Mon Sep 17 00:00:00 2001 From: legendecas Date: Tue, 17 Dec 2019 00:50:21 +0800 Subject: [PATCH 1/2] doc: reference worker threads on signal events --- doc/api/process.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/process.md b/doc/api/process.md index 217fbb66bc0f9b..9fbd2ea9f968d7 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -429,6 +429,8 @@ Signal events will be emitted when the Node.js process receives a signal. Please refer to signal(7) for a listing of standard POSIX signal names such as `'SIGINT'`, `'SIGHUP'`, etc. +Signals will not be available on [`Worker`][] threads. + The signal handler will receive the signal's name (`'SIGINT'`, `'SIGTERM'`, etc.) as the first argument. From 9c08c46484ff2b9a0b427077941a991b916228ca Mon Sep 17 00:00:00 2001 From: legendecas Date: Tue, 17 Dec 2019 13:51:20 +0800 Subject: [PATCH 2/2] Update doc/api/process.md Co-Authored-By: Rich Trott --- doc/api/process.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/process.md b/doc/api/process.md index 9fbd2ea9f968d7..212c171cf88d62 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -429,7 +429,7 @@ Signal events will be emitted when the Node.js process receives a signal. Please refer to signal(7) for a listing of standard POSIX signal names such as `'SIGINT'`, `'SIGHUP'`, etc. -Signals will not be available on [`Worker`][] threads. +Signals are not available on [`Worker`][] threads. The signal handler will receive the signal's name (`'SIGINT'`, `'SIGTERM'`, etc.) as the first argument.