Reputation: 2223
What would cause std::process:Command::output
to fail? If the callee program fails, the error will be captured as part of the resulting Output.stderr
, so I guess output
will only return an Error
if the OS fails to create a new process for some reason? Is that something that I can safely ignore for my simple CLI tool?
Upvotes: 1
Views: 122
Reputation: 5635
waitpid
syscall could be interruptedcat /proc/sys/fs/file-max
to check)ulimit -n
to check)You probably only need to worry about the first two: you can't do anything about hitting limits in the kernel.
Upvotes: 1