pub fn replacePath(io: Io, dir: Io.Dir, options: ReplaceOptions) ReplaceError io: Iodir: Io.Diroptions: ReplaceOptions311
312
313pub fn replacePath(io: Io, dir: Io.Dir, options: ReplaceOptions) ReplaceError {
return io.vtable.processReplacePath(io.userdata, dir, options);
}
Replaces the current process image with the executed process. If this function succeeds, it does not return.
argv[0]is the file path of the process to replace the current one with, relative todir. It is always treated as a file path, even if it does not contain '/'.It is illegal to call this function in a fork() child.