Re: How to make dump() unbuffered?

Boris Zbarsky <[email protected]> Mon, 17 May 2010 22:19:28 -0400
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
On 5/17/10 6:35 PM, BSZ Tim wrote:
> Is window.dump() 's output buffered?

Here's the relevant part of dump():

4091   if (cstr) {
4092     FILE *fp = gDumpFile ? gDumpFile : stdout;
4093     fputs(cstr, fp);
4094     fflush(fp);
4095     nsMemory::Free(cstr);
4096   }

That's about as unbuffered as we can get on our end; what libc and the 
OS (and possibly your shell) do at that point is up to them.

-Boris