~ubuntu-branches/ubuntu/precise/qapt/precise

« back to all changes in this revision

Viewing changes to src/worker/workerinstallprogress.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2011-01-26 21:27:09 UTC
  • Revision ID: james.westby@ubuntu.com-20110126212709-ffsm3rdrs3ami6d6
Tags: 1.1.0-0ubuntu2
Add kubuntu_01_dont_close_stdout.diff from upstream to fix the failure
of postinst scripts needing stdout. (LP: #680328)

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
            _exit(1);
86
86
        }
87
87
 
88
 
        // close Forked stdout and the read end of the pipe
89
 
        close(1);
 
88
        close(writeToChildFD[0]);
 
89
 
 
90
        // close pipes we don't need
 
91
        close(readFromChildFD[0]);
 
92
        close(writeToChildFD[1]);
90
93
 
91
94
        res = pm->DoInstallPostFork(readFromChildFD[1]);
92
95
 
93
96
        // dump errors into cerr (pass it to the parent process)
94
97
        _error->DumpErrors();
95
98
 
96
 
        close(readFromChildFD[0]);
97
 
        close(writeToChildFD[1]);
98
99
        close(readFromChildFD[1]);
99
 
        close(writeToChildFD[0]);
100
100
 
101
101
        _exit(res);
102
102
    }