I have code:
Process.spawn(RbConfig.ruby, "a ruby file", "arg")
and I wait and check its status by:
Process.wait
$?.success?
Most of the time, it works well. But sometimes, $?.success?
is false
and $?.to_i
is 0x0100
. It seems the failed process didn't get a chance to run any code before 0x0100
was returned (I didn't send any signal to the process). I wonder the meaning of 0x0100
. I further want to know if Ruby's spawn may fail when the command is all right. Could anyone help?