aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2013-07-07 16:22:43 -0700
committerPaul Eggert2013-07-07 16:22:43 -0700
commit9caab067d66a2de8520aab5c2b17205548631c4d (patch)
treeb9bd9219a605baaecce2f0413b1ae5306bda0182
parent5165d44a786798f59c880d23dd3569d263009b51 (diff)
downloademacs-9caab067d66a2de8520aab5c2b17205548631c4d.tar.gz
emacs-9caab067d66a2de8520aab5c2b17205548631c4d.zip
Port to Ubuntu 10.
Problem reported by T.V. Raman. * configure.ac (accept4): New function to check for. * src/process.c (close_on_exec, accept4, process_socket): Define these if !HAVE_ACCEPT4, not if !SOCK_CLOEXEC. Fixes: debbugs:14803
-rw-r--r--ChangeLog4
-rw-r--r--configure.ac2
-rw-r--r--src/ChangeLog7
-rw-r--r--src/process.c3
4 files changed, 15 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 33e739c9173..b7b386405f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,12 @@
12013-07-07 Paul Eggert <eggert@cs.ucla.edu> 12013-07-07 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 Port to Ubuntu 10 (Bug#14803).
4 * configure.ac (accept4): New function to check for.
5
3 Make file descriptors close-on-exec when possible (Bug#14803). 6 Make file descriptors close-on-exec when possible (Bug#14803).
4 * configure.ac (mkostemp): New function to check for. 7 * configure.ac (mkostemp): New function to check for.
5 (PTY_OPEN): Pass O_CLOEXEC to posix_openpt. 8 (PTY_OPEN): Pass O_CLOEXEC to posix_openpt.
9
6 * lib/fcntl.c, lib/getdtablesize.c, lib/pipe2.c, m4/fcntl.m4: 10 * lib/fcntl.c, lib/getdtablesize.c, lib/pipe2.c, m4/fcntl.m4:
7 * m4/getdtablesize.m4, m4/pipe2.m4: New files, taken from gnulib. 11 * m4/getdtablesize.m4, m4/pipe2.m4: New files, taken from gnulib.
8 * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate. 12 * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
diff --git a/configure.ac b/configure.ac
index bbaa02820ab..0a775efa584 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3237,7 +3237,7 @@ esac
3237AC_SUBST(BLESSMAIL_TARGET) 3237AC_SUBST(BLESSMAIL_TARGET)
3238 3238
3239 3239
3240AC_CHECK_FUNCS(gethostname \ 3240AC_CHECK_FUNCS(accept4 gethostname \
3241getrusage get_current_dir_name \ 3241getrusage get_current_dir_name \
3242lrand48 \ 3242lrand48 \
3243select getpagesize setlocale \ 3243select getpagesize setlocale \
diff --git a/src/ChangeLog b/src/ChangeLog
index f73c94f0752..462a246f220 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
12013-07-07 Paul Eggert <eggert@cs.ucla.edu>
2
3 Port to Ubuntu 10 (Bug#14803).
4 Problem reported by T.V. Raman.
5 * process.c (close_on_exec, accept4, process_socket):
6 Define these if !HAVE_ACCEPT4, not if !SOCK_CLOEXEC.
7
12013-07-07 Eli Zaretskii <eliz@gnu.org> 82013-07-07 Eli Zaretskii <eliz@gnu.org>
2 9
3 * w32.c (sys_dup): Declare prototype. 10 * w32.c (sys_dup): Declare prototype.
diff --git a/src/process.c b/src/process.c
index cad42470bc1..1c210649024 100644
--- a/src/process.c
+++ b/src/process.c
@@ -137,6 +137,9 @@ extern int sys_select (int, SELECT_TYPE *, SELECT_TYPE *, SELECT_TYPE *,
137 137
138#ifndef SOCK_CLOEXEC 138#ifndef SOCK_CLOEXEC
139# define SOCK_CLOEXEC 0 139# define SOCK_CLOEXEC 0
140#endif
141
142#ifndef HAVE_ACCEPT4
140 143
141/* Emulate GNU/Linux accept4 and socket well enough for this module. */ 144/* Emulate GNU/Linux accept4 and socket well enough for this module. */
142 145