From: matz@... (Yukihiro Matsumoto) Date: 2003-05-14T14:10:57+09:00 Subject: Re: RCR for child execution Hi, In message "Re: RCR for child execution" on 03/05/13, "Simon Strandgaard" <0bz63fz3m1qt3001@sneakemail.com> writes: |> You misunderstand here. In current Ruby, assignment to $stdin |> etc. does reopen *at the time of assignment*. | |Yes I know rb_stdout is a hooked variable.. this is just very simplified |pseudo code. I guess your pseudo code dropped something _very_ important, enough to confuse others. |Actually I have a bug in this.. stdout is suppose to inherit rb_stdout |from the parent process. So here is my example I posted earlier: You are assuming stdout and rb_stdout pointing different file descriptor, are you? Or, do you think they should be different? rb_stdout is always point to file descriptor 1 (except for some rare cases, that you don't want to consider). So they are same, no need to assign, nor reopen. matz.