Error Set RunError [src]
Errors
In WASI, this error occurs when the file descriptor does not hold the required rights to read from it.
reading a timerfd with CANCEL_ON_SET will lead to this error when the clock goes through a discontinuous change
Windows-only. cwd
was provided, but the path did not exist when spawning the child process.
Windows-only. NUL (U+0000), LF (U+000A), CR (U+000D) are not allowed
within arguments when executing a .bat
/.cmd
script.
- NUL/LF signifiies end of arguments, so anything afterwards would be lost after execution.
- CR is stripped by
cmd.exe
, so any CR codepoints would be lost after execution.
WASI-only; file paths must be valid UTF-8.
Windows-only. cwd
or argv
was provided and it was invalid WTF-8.
https://simonsapin.github.io/wtf-8/
Unable to read file due to lock.
The network subsystem has failed.
POSIX-only. StdIo.Ignore
was selected and opening /dev/null
returned ENODEV.
This error occurs in Linux if the process to be read from no longer exists.
The kernel had no space to allocate file descriptor tables.
The Operating System returned an undocumented error code.
This error is in theory not possible, but it would be better to handle this error than to invoke undefined behavior.
When this error code is observed, it usually means the Zig Standard Library needs a small patch to add the error code to the error set for the respective function.
This error occurs when no global event loop is configured, and reading from the file descriptor would block.
Source
pub const RunError = posix.GetCwdError || posix.ReadError || SpawnError || posix.PollError || error{
StdoutStreamTooLong,
StderrStreamTooLong,
}