~timothy-gu/the-bumblebee-project/master

« back to all changes in this revision

Viewing changes to src/bbsecondary.c

  • Committer: Peter Wu
  • Date: 2013-02-21 19:03:35 UTC
  • mfrom: (232.9.22)
  • Revision ID: git-v1:29b668483d18c5e410fc6319970723869d921ed1
Merge branch 'release-3.1'

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
    if (bb_status.x_pipe[0] != -1){close(bb_status.x_pipe[0]); bb_status.x_pipe[0] = -1;}
163
163
    if (bb_status.x_pipe[1] != -1){close(bb_status.x_pipe[1]); bb_status.x_pipe[1] = -1;}
164
164
    //create a new pipe
165
 
    if (pipe2(bb_status.x_pipe, O_NONBLOCK)){
 
165
    if (pipe2(bb_status.x_pipe, O_NONBLOCK | O_CLOEXEC)){
166
166
      set_bb_error("Could not create output pipe for X");
167
167
      return;
168
168
    }