Skip to content

Commit 73c52d2

Browse files
committed
doc: move process.execve to its right place
Move `process.execve` so it's in the right place alphabetically. Fixes: #58402
1 parent e054c5e commit 73c52d2

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

doc/api/process.md

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,6 +1780,35 @@ that started the Node.js process. Symbolic links, if any, are resolved.
17801780
'/usr/local/bin/node'
17811781
```
17821782
1783+
## `process.execve(file[, args[, env]])`
1784+
1785+
<!-- YAML
1786+
added:
1787+
- v23.11.0
1788+
- v22.15.0
1789+
-->
1790+
1791+
> Stability: 1 - Experimental
1792+
1793+
* `file` {string} The name or path of the executable file to run.
1794+
* `args` {string\[]} List of string arguments. No argument can contain a null-byte (`\u0000`).
1795+
* `env` {Object} Environment key-value pairs.
1796+
No key or value can contain a null-byte (`\u0000`).
1797+
**Default:** `process.env`.
1798+
1799+
Replaces the current process with a new process.
1800+
1801+
This is achieved by using the `execve` POSIX function and therefore no memory or other
1802+
resources from the current process are preserved, except for the standard input,
1803+
standard output and standard error file descriptor.
1804+
1805+
All other resources are discarded by the system when the processes are swapped, without triggering
1806+
any exit or close events and without running any cleanup handler.
1807+
1808+
This function will never return, unless an error occurred.
1809+
1810+
This function is not available on Windows or IBM i.
1811+
17831812
## `process.exit([code])`
17841813
17851814
<!-- YAML
@@ -3360,35 +3389,6 @@ In custom builds from non-release versions of the source tree, only the
33603389
`name` property may be present. The additional properties should not be
33613390
relied upon to exist.
33623391
3363-
## `process.execve(file[, args[, env]])`
3364-
3365-
<!-- YAML
3366-
added:
3367-
- v23.11.0
3368-
- v22.15.0
3369-
-->
3370-
3371-
> Stability: 1 - Experimental
3372-
3373-
* `file` {string} The name or path of the executable file to run.
3374-
* `args` {string\[]} List of string arguments. No argument can contain a null-byte (`\u0000`).
3375-
* `env` {Object} Environment key-value pairs.
3376-
No key or value can contain a null-byte (`\u0000`).
3377-
**Default:** `process.env`.
3378-
3379-
Replaces the current process with a new process.
3380-
3381-
This is achieved by using the `execve` POSIX function and therefore no memory or other
3382-
resources from the current process are preserved, except for the standard input,
3383-
standard output and standard error file descriptor.
3384-
3385-
All other resources are discarded by the system when the processes are swapped, without triggering
3386-
any exit or close events and without running any cleanup handler.
3387-
3388-
This function will never return, unless an error occurred.
3389-
3390-
This function is not available on Windows or IBM i.
3391-
33923392
## `process.report`
33933393
33943394
<!-- YAML

0 commit comments

Comments
 (0)