diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2013-01-02 08:37:04 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-01-02 08:37:04 -0800 |
commit | 9ff99d22a01be4cafc27064ad8474672eb2fe09b (patch) | |
tree | 3e8e69c0cbf6db321ef58c9dc5ac6924a5b6f368 /m4/dup2.m4 | |
parent | 09b8afb6c8b235279dac6cdc7ffee68b782712ac (diff) | |
download | emacs-9ff99d22a01be4cafc27064ad8474672eb2fe09b.tar.gz |
Merge from gnulib.
Diffstat (limited to 'm4/dup2.m4')
-rw-r--r-- | m4/dup2.m4 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/m4/dup2.m4 b/m4/dup2.m4 index fc86e8085ba..269cfdc1123 100644 --- a/m4/dup2.m4 +++ b/m4/dup2.m4 @@ -1,5 +1,5 @@ -#serial 18 -dnl Copyright (C) 2002, 2005, 2007, 2009-2012 Free Software Foundation, Inc. +#serial 19 +dnl Copyright (C) 2002, 2005, 2007, 2009-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -39,6 +39,9 @@ AC_DEFUN([gl_FUNC_DUP2], /* Many gnulib modules require POSIX conformance of EBADF. */ if (dup2 (2, 1000000) == -1 && errno != EBADF) result |= 16; + /* Flush out a cygwin core dump. */ + if (dup2 (2, -1) != -1 || errno != EBADF) + result |= 32; return result; ]) ], |