g_unix_open_pipe: fix some bugs
authorRyan Lortie <desrt@desrt.ca>
Mon, 25 Jul 2011 13:25:13 +0000 (15:25 +0200)
committerRyan Lortie <desrt@desrt.ca>
Mon, 25 Jul 2011 13:26:28 +0000 (15:26 +0200)
commit15a1cf804974c3fa526bab8a6b80eb27518313f3
treeb0fd7bcc69aea80d29b7bc0257f656576febf17a
parentaa4d704e632df68be9843074ea8197c30ebc52ed
g_unix_open_pipe: fix some bugs

Fix some bugs in the fallback case of g_unix_open_pipe:

  - close both halves of the pipe on error (not just one)

  - set the cloexec flag on both halves of the pipe (instead of settings
    it twice on one half)
glib/glib-unix.c