set close-on-exec in pipe size modification check
commitb9979f380f1dc8bbde89c16b0fa25a67f9bc1830
authorEric Wong <normalperson@yhbt.net>
Sun, 21 Apr 2013 03:22:26 +0000 (21 03:22 +0000)
committerEric Wong <normalperson@yhbt.net>
Sun, 21 Apr 2013 03:26:29 +0000 (21 03:26 +0000)
treec3b3941fd14c0dffc3702aff7c99bd84e208618c
parentb24af7d357644bfe5c65785d58492845b00e888d
set close-on-exec in pipe size modification check

This prevents a file descriptor leak in case another thread
forks and execs while we are in the middle of loading.  This
places a hard dependency on pipe2, but pipe2 appeared in Linux
before pipe size modification.
ext/io_splice/extconf.rb
ext/io_splice/io_splice_ext.c