g_unix_open_pipe: Add missing F_SETFD
authorColin Walters <walters@verbum.org>
Tue, 11 Dec 2012 21:53:48 +0000 (16:53 -0500)
committerColin Walters <walters@verbum.org>
Tue, 11 Dec 2012 22:12:19 +0000 (17:12 -0500)
commitc70072180557c0a897da0d96ef2cf4f5398ddd3b
tree6240b9c5880a114f7f2ce1ff4eae36d758715cf1
parent5baa26be724db9e8bb16e52568a0caca31a0b74b
g_unix_open_pipe: Add missing F_SETFD

Spotted by Ray Strode <rstrode@redhat.com>

While we're here, microoptimize by skipping the fcntl() calls if flags
is 0.

https://bugzilla.gnome.org/show_bug.cgi?id=690069
glib/glib-unix.c