Fix porting bug to older POSIXish platforms.
commitc7ddc792b747fdf4fde822df0cf9c7b712be4219
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 16 Jul 2013 07:05:41 +0000 (16 00:05 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 16 Jul 2013 07:05:41 +0000 (16 00:05 -0700)
treede532bf42e3675fa093996b13ddb490cb8ec2f6c
parente6c005c5f8e39252fd11821b6452843bead2df6a
Fix porting bug to older POSIXish platforms.

* sysdep.c (emacs_pipe): New function, that implements
pipe2 (fd, O_CLOEXEC) even on hosts that lack O_CLOEXEC.
This should port better to CentOS 5 and to Mac OS X 10.6.
All calls to pipe2 changed.

Fixes: debbugs:14862
src/ChangeLog
src/alloc.c
src/callproc.c
src/emacs.c
src/lisp.h
src/nsterm.m
src/process.c
src/sysdep.c