> On 6/22/08, Russ Cox <[EMAIL PROTECTED]> wrote:
>> It is not waiting for dossrv to exit,
>> so much as it is waiting for all the open
>> file descriptors referring to that window's
>> /dev/cons to be closed. Dossrv just happens
>> to be the one holding them.
>>
>> Probably the various dossrv'ing scripts should run
>>
>> dossrv </dev/null >/dev/null >[2=1]
>
> But that's what 9fat: does (well, not literally, since it does 'dossrv
>>/dev/null </dev/null >[2]/dev/null', but it means the same). So then
> dossrv shouldn't be holding the window's /dev/cons open, right?
russ is should be correct.
i think that dossrv's quirks are surprising. the
redirection in 9fat: is superfluous since 9fat opens
/dev/null on fds 0 and 1 and it makes this surprise
move for fd 2:
if(!chatty){
close(2);
open("#c/cons", OWRITE);
}
that's downright antisocial. maybe there's a good
reason. but i can't think of one now.
- erik