File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 99<article name =" Reference"
1010 link =" /en/docs/njs/reference.html"
1111 lang =" en"
12- rev =" 126 " >
12+ rev =" 127 " >
1313
1414<section id =" summary" >
1515
@@ -3649,6 +3649,7 @@ The callback is called without arguments.
36493649<table width =" 100%" >
36503650<tr ><td ><link id =" process_argv" ><literal >process.argv</literal ></link ></td ></tr >
36513651<tr ><td ><link id =" process_env" ><literal >process.env</literal ></link ></td ></tr >
3652+ <tr ><td ><link id =" process_kill" ><literal >process.kill()</literal ></link ></td ></tr >
36523653<tr ><td ><link id =" process_pid" ><literal >process.pid</literal ></link ></td ></tr >
36533654<tr ><td ><link id =" process_ppid" ><literal >process.ppid</literal ></link ></td ></tr >
36543655</table >
@@ -3680,6 +3681,15 @@ to preserve some of the inherited variables.
36803681</note >
36813682</tag-desc >
36823683
3684+ <tag-name id =" process_kill" ><literal >process.kill(<value >pid</value >,
3685+ <value >number</value > | <value >string</value >)</literal ></tag-name >
3686+ <tag-desc >
3687+ Sends the signal to the process identified by <literal >pid</literal >.
3688+ Signal names are numbers or strings such as 'SIGINT' or 'SIGHUP'.
3689+ See <link url =" https://man7.org/linux/man-pages/man2/kill.2.html" >kill(2)</link >
3690+ for more information.
3691+ </tag-desc >
3692+
36833693<tag-name id =" process_pid" ><literal >process.pid</literal ></tag-name >
36843694<tag-desc >
36853695Returns the PID of the current process.
You can’t perform that action at this time.
0 commit comments