aboutsummaryrefslogtreecommitdiffstats
path: root/src/callproc.c
diff options
context:
space:
mode:
authorPaul Eggert2013-07-16 00:05:41 -0700
committerPaul Eggert2013-07-16 00:05:41 -0700
commitc7ddc792b747fdf4fde822df0cf9c7b712be4219 (patch)
treede532bf42e3675fa093996b13ddb490cb8ec2f6c /src/callproc.c
parente6c005c5f8e39252fd11821b6452843bead2df6a (diff)
downloademacs-c7ddc792b747fdf4fde822df0cf9c7b712be4219.tar.gz
emacs-c7ddc792b747fdf4fde822df0cf9c7b712be4219.zip
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
Diffstat (limited to 'src/callproc.c')
-rw-r--r--src/callproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 86d82466801..facaac60f2a 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -524,7 +524,7 @@ usage: (call-process PROGRAM &optional INFILE DESTINATION DISPLAY &rest ARGS) *
524 { 524 {
525#ifndef MSDOS 525#ifndef MSDOS
526 int fd[2]; 526 int fd[2];
527 if (pipe2 (fd, O_CLOEXEC) != 0) 527 if (emacs_pipe (fd) != 0)
528 { 528 {
529 int pipe_errno = errno; 529 int pipe_errno = errno;
530 emacs_close (filefd); 530 emacs_close (filefd);