I’m working on a custom Process.waitpid method (for Windows). It works
fine, except that I want to be able to set the Process::Status ($?)
manually within the method. Specifically, the exitstatus and pid. This
is pure Ruby, btw.
The problem is that Process::Status.new has been undef’d within
process.c and $? has been set to readonly.
I’ve tinkered with redefining Process::Status.new, a custom
Process::Status#initialize, instance_variable_set, etc - all to no
Is there any way to set $? from within Ruby?