aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2010-11-04 15:54:14 -0400
committerChong Yidong2010-11-04 15:54:14 -0400
commitbd80a88673b755ccf9d850b907e65fec5308e6b4 (patch)
tree2507a04497fdcf73c5be6d66767a9932de87f63e /src
parentc2e124a95b5f1dcb7d8e7f2ea1549d30fd54bc17 (diff)
downloademacs-bd80a88673b755ccf9d850b907e65fec5308e6b4.tar.gz
emacs-bd80a88673b755ccf9d850b907e65fec5308e6b4.zip
Backport 2010-03-25T08:56:15Z!mituharu@math.s.chiba-u.ac.jp from trunk
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/process.c14
2 files changed, 5 insertions, 14 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index f3bbfe05dac..1420114ea5b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4 `connect' (Bug#5723).
5
12010-03-25 Helmut Eller <eller.helmut@gmail.com> 62010-03-25 Helmut Eller <eller.helmut@gmail.com>
2 7
3 * process.c (Fmake_network_process): Call `select' for interrupted 8 * process.c (Fmake_network_process): Call `select' for interrupted
diff --git a/src/process.c b/src/process.c
index 77490adaa79..e3622c79386 100644
--- a/src/process.c
+++ b/src/process.c
@@ -3654,23 +3654,9 @@ usage: (make-network-process &rest ARGS) */)
3654 immediate_quit = 1; 3654 immediate_quit = 1;
3655 QUIT; 3655 QUIT;
3656 3656
3657 /* This turns off all alarm-based interrupts; the
3658 bind_polling_period call above doesn't always turn all the
3659 short-interval ones off, especially if interrupt_input is
3660 set.
3661
3662 It'd be nice to be able to control the connect timeout
3663 though. Would non-blocking connect calls be portable?
3664
3665 This used to be conditioned by HAVE_GETADDRINFO. Why? */
3666
3667 turn_on_atimers (0);
3668
3669 ret = connect (s, lres->ai_addr, lres->ai_addrlen); 3657 ret = connect (s, lres->ai_addr, lres->ai_addrlen);
3670 xerrno = errno; 3658 xerrno = errno;
3671 3659
3672 turn_on_atimers (1);
3673
3674 if (ret == 0 || xerrno == EISCONN) 3660 if (ret == 0 || xerrno == EISCONN)
3675 { 3661 {
3676 /* The unwind-protect will be discarded afterwards. 3662 /* The unwind-protect will be discarded afterwards.