From: Brian Candler Date: 2003-05-12T23:49:34+09:00 Subject: Re: RCR for child execution On Mon, May 12, 2003 at 09:01:19PM +0900, Simon Strandgaard wrote: > > I mean, I'm guessing you want something like '$deferr' like '$defout', > > right? So that rb_warn sends to $deferr, and you can map this variable to > > point to some other object? > > I see no reason to introduce a '$deferr'... But this could be possible > sideeffect of this. > rb_warn outputs to stderr, perhaps it should output to rb_stderr ? It's the same thing at the moment, because rb_stderr just encapsulates stderr. When you do $stderr = File.new("/tmp/foo") then the underlying Unix stderr is reopened to point to /tmp/foo. Try it. So they are always kept in sync. > > - It doesn't follow the Unix API model, therefore violates POLS: > > "system" should not create pipes to the child. "popen" should. > > Disagree! > What is POLS ? > where can I read more about the standard Unix API model ? "The Principle of Least Surprise" For the Unix API model, the best introduction and reference I have found is the Stevens book. Brian.