On 08/28/2014 01:39 AM, Gabriele Svelto wrote:

> That doesn't need to be necessarily true; I remember a suggestion (from
> Dave Hylands IIRC) that in a lot of cases we can delegate opening a file
> (and the relevant permission checks) to the main process but then have
> the file descriptor handed over to the child process for
> reading/writing. This preserves our security model but removes most of
> the overhead associated with IPC. I can't remember on which bug that
> comment was made but it must have been related to bug 896810 [2]. As far
> as logging goes this sounds like a workable solution for speeding up
> logging in child processes.
> 
> Dave, I'm I remembering correctly or is my tired mind making things up?

The fd opening in parent then handing to the child is done to remote jar
openings for instance. But i'm not sure we can log directly from the
child process in all cases. For instance, anything that needs to be
available for devtools needs to go to the parent first.

        Fabrice
-- 
Fabrice Desré
b2g team
Mozilla Corporation
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to