~robert-ancell/lightdm/xorg-displayfd

« back to all changes in this revision

Viewing changes to src/session.c

  • Committer: Robert Ancell
  • Date: 2012-03-05 00:23:32 UTC
  • Revision ID: robert.ancell@canonical.com-20120305002332-eox30d8k6gb70qrc
Stop file descriptors leaking into the session processes

Show diffs side-by-side

added added

removed removed

Lines of Context:
326
326
    /* Create pipes to talk to the child */
327
327
    if (pipe (to_child_pipe) < 0 || pipe (from_child_pipe) < 0)
328
328
    {
329
 
        g_warning ("Failed to create pipe to communicated with session process: %s", strerror (errno));
 
329
        g_warning ("Failed to create pipe to communicate with session process: %s", strerror (errno));
330
330
        return FALSE;
331
331
    }
332
332
    to_child_output = to_child_pipe[0];