execve
execve(
proc,path,argv?,env?):Promise<void>
Defined in: src/fs/exec.ts:102
Replace what proc is running with path.
A new image means a new thread: the old one is torn down and the program is loaded on a fresh one, which is as close to what Linux does as there is here. This comes back once the program is loaded, not once it is done, so wait on Process.exited for that.
Parameters
Section titled “Parameters”string
string[] = ...
Record<string, string> = proc.env
Returns
Section titled “Returns”Promise<void>