diff --git a/doc/api/process.md b/doc/api/process.md index 3eaa17be6144dd..0192ac8e80d11a 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -1720,6 +1720,13 @@ This function will never return, unless an error occurred. This function is not available on Windows or IBM i. +For example, the following restarts the current process in the same way it started, +modulo changes to `process.chdir(...)`, `process.env`, `process.argv`. + +```js + process.execve(process.argv0, process.argv); +``` + ## `process.exit([code])`