Alfredo Braunstein wrote:

> Angus Leeming wrote:
> 
>> This works well enough, but I was wondering if, by choosing a
>> different value for child_redirect_stderr, I could avoid the run time
>> check:
>> if (mode & child_redirect_stderr) {
>> mode |= child_stdout;
>> if (mode & child_stderr) mode ^= child_stderr;
>> }
> 
> Alternatively, you could as well specify that if you set
> child_redirect_stderr you need *not* to set child_stdout nor
> child_stderr, and have child_stdout=100, child_stderr=010,
> child_redirect=101

But if (mode = child_stdout), then (mode & child_redirect) == true
which is not what I want.

-- 
Angus

Reply via email to