Re: Logging events in Necko
Jason Duell <[email protected]> Mon, 15 Oct 2012 14:05:55 -0700
| Newsgroups | gmane.comp.mozilla.devel.netlib |
|---|---|
| Message-ID | <[email protected]> |
On 10/15/2012 12:20 PM, Brian Smith wrote: > Jason Duell wrote: >> Our setup also is less than ideal with multiple processes: see >> >> https://bugzilla.mozilla.org/show_bug.cgi?id=638375 >> >> https://bugzilla.mozilla.org/show_bug.cgi?id=534764 > Regarding multi-process NSPR logging, don't we just need to send the log output of child processes to a pipe that is consumed by the parent process, and then have the parent process PR_LOG() what it received with some information tacked on (child process ID)? Sure, a pipe would be one solution. Some sort of IPC communication is needed. > NSPR_LOG_FILE should NOT work for child processes anyway, because child processes aren't allowed to do disk I/O. Right--that's how we're doing it now, and it's not viable long-term. Jason