From: Daniel Berger Date: 2006-04-29T23:41:19+09:00 Subject: Setting $? manually - possible? Hi all, Ruby 1.8.4 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 avail. Is there any way to set $? from within Ruby? Thanks, Dan