in reply to •Re: open file descriptors
in thread open file descriptors
Well, that has the builtin assumption that the max fileno is 100, which is probably good enough, usually, but it will lead to a really hard to debug problem, eventually. It's actually somewhat of a weakness of perl, I think, that there is no exposed system call to get all open file descriptors. Obvoiously you can deal with this if you compile perl properly, and just refer to the system call by number through syscall()... but still, this is sad.
------------
:Wq
Not an editor command: Wq
This is additionally sad because of the behavior of perl's output buffers on fork() (leaving buffers unflushed), since the buffers are duped with the fork, but there is no means by which to systematically flush all buffers before fork(). However, as I understand it, the behavior on fork() is fixed in later versions of perl (I'm still on 5.005_03... but we're working on an upgrade plan to 5.8 soon)... so that's good at least.
------------
:Wq
Not an editor command: Wq
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: •Re: open file descriptors
by exussum0 (Vicar) on Dec 13, 2003 at 22:03 UTC | |
by etcshadow (Priest) on Dec 13, 2003 at 22:28 UTC | |
by exussum0 (Vicar) on Dec 13, 2003 at 23:01 UTC | |
by etcshadow (Priest) on Dec 14, 2003 at 00:15 UTC |
In Section
Seekers of Perl Wisdom