[Perl-unix-users] Re: Flushing all open file descriptors...

2005-08-26 Thread Arijit Das
--- $Bill Luebkert <[EMAIL PROTECTED]> wrote: > Arijit Das wrote: > > > I think you are missing out here... > > Let's hope not. > > > DIsk files are always fully-buffered, STOUT is > line > > buffered and STDERR is unbuffered. > > Not true on all systems - buffering varies on > different tar

[Perl-unix-users] Re: Flushing all open file descriptors...

2005-08-26 Thread $Bill Luebkert
Arijit Das wrote: > I think you are missing out here... Let's hope not. > DIsk files are always fully-buffered, STOUT is line > buffered and STDERR is unbuffered. Not true on all systems - buffering varies on different target devices, system calls and OS's. UNIX 'write (2)' to a disk file is n

[Perl-unix-users] Re: Flushing all open file descriptors...

2005-08-26 Thread Arijit Das
I think you are missing out here... DIsk files are always fully-buffered, STOUT is line buffered and STDERR is unbuffered. My problem is I have to do a kill -9 at the end. And a process dying with kill -9 doesn't get a scope to do its cleanup like flushing open files handles and closing them. -A