From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-05-11T01:27:31+09:00 Subject: Re: RCR for child execution On Sun, 11 May 2003 01:50:49 +0900, Brian Candler wrote: > On Sat, May 10, 2003 at 10:26:11PM +0900, Simon Strandgaard wrote: >> I have some more to add to this issue. >> >> >> I am embedding ruby into c++ and want to seperate Rubys output from C++. >> >> AFAIK: When ruby spawns a child-process, then the child inherits >> filedescriptor 1 & 2 from parent. >> >> What im asking for is: is it possible for let the children inherit the >> value of rb_stdout, rb_stderr instead ??? > [snip stdout/stderr] > > Is this any clearer?? Problem: Ruby-child-processes inherit stdout/stderr, not rb_stdout, rb_stderr. From C/C++ I cannot use stdout/stderr. This is my RCR proposal: Let child-processes inherit from rb_stdout/rb_stderr, so that stdout/stderr is untouched :-) -- Simon Strandgaard