Displaying 1 result from an estimated 1 matches for "childexit".
Did you mean:
child_exit
2007 Mar 01
0
No subject
...is. If I have time, I''ll have
a go at cleaning it up, and integrating it into puppet this weekend.
--------------000307080500050302090906
Content-Type: text/plain;
name="test.rb"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="test.rb"
class ChildExit < Exception
def initialize(command, status)
@status = status
@command = command
end
attr_reader :command, :status
end
def from_child(command)
output = ""
IO.popen(command) do |x|
begin
puts :BEGIN
old_sighandler = trap(:SIGCHLD) { raise ChildExit.new(c...