Skip to content

Commit 3cdb33e

Browse files
xeioexy82
authored andcommitted
Documented process.kill() for njs.
1 parent 8ed7848 commit 3cdb33e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

xml/en/docs/njs/reference.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
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>
36853695
Returns the PID of the current process.

0 commit comments

Comments
 (0)