aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2009-12-03 19:01:36 +0000
committerStefan Monnier2009-12-03 19:01:36 +0000
commit84b318269ceb95adcd16f49f6a110be04fcaeffd (patch)
treeda28f37e2b490afb11787e1d6a026786a50827a8
parentf00c449ba1e11bda4b50d39b9ab60dfc9c889b05 (diff)
downloademacs-84b318269ceb95adcd16f49f6a110be04fcaeffd.tar.gz
emacs-84b318269ceb95adcd16f49f6a110be04fcaeffd.zip
(Fmake_network_process): Fix up the tests for
"connectionless socket", so they DTRT for seqpacket sockets as well.
-rw-r--r--etc/NEWS2
-rw-r--r--src/ChangeLog5
-rw-r--r--src/process.c8
3 files changed, 11 insertions, 4 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 6717e6519c4..6e46678c22b 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -354,6 +354,8 @@ the variable `byte-compile-compatibility') has been removed.
354 354
355* Lisp changes in Emacs 23.2 355* Lisp changes in Emacs 23.2
356 356
357** make-network-socket can now also create `seqpacket' Unix sockets.
358
357** New function `completion-in-region' to use the standard completion 359** New function `completion-in-region' to use the standard completion
358facilities on a particular region of text. 360facilities on a particular region of text.
359 361
diff --git a/src/ChangeLog b/src/ChangeLog
index 383d13cbc07..dbe24e3a142 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
2
3 * process.c (Fmake_network_process): Fix up the tests for
4 "connectionless socket", so they DTRT for seqpacket sockets as well.
5
12009-12-03 Stefan Monnier <monnier@iro.umontreal.ca> 62009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * process.c (Qseqpacket): New symbol. 8 * process.c (Qseqpacket): New symbol.
diff --git a/src/process.c b/src/process.c
index 61cf86e4eb3..088997d80ac 100644
--- a/src/process.c
+++ b/src/process.c
@@ -3333,7 +3333,7 @@ usage: (make-network-process &rest ARGS) */)
3333 QCaddress = is_server ? QClocal : QCremote; 3333 QCaddress = is_server ? QClocal : QCremote;
3334 3334
3335 /* :nowait BOOL */ 3335 /* :nowait BOOL */
3336 if (!is_server && socktype == SOCK_STREAM 3336 if (!is_server && socktype != SOCK_DGRAM
3337 && (tem = Fplist_get (contact, QCnowait), !NILP (tem))) 3337 && (tem = Fplist_get (contact, QCnowait), !NILP (tem)))
3338 { 3338 {
3339#ifndef NON_BLOCKING_CONNECT 3339#ifndef NON_BLOCKING_CONNECT
@@ -3428,7 +3428,7 @@ usage: (make-network-process &rest ARGS) */)
3428 Some kernels have a bug which causes retrying connect to fail 3428 Some kernels have a bug which causes retrying connect to fail
3429 after a connect. Polling can interfere with gethostbyname too. */ 3429 after a connect. Polling can interfere with gethostbyname too. */
3430#ifdef POLL_FOR_INPUT 3430#ifdef POLL_FOR_INPUT
3431 if (socktype == SOCK_STREAM) 3431 if (socktype != SOCK_DGRAM)
3432 { 3432 {
3433 record_unwind_protect (unwind_stop_other_atimers, Qnil); 3433 record_unwind_protect (unwind_stop_other_atimers, Qnil);
3434 bind_polling_period (10); 3434 bind_polling_period (10);
@@ -3631,7 +3631,7 @@ usage: (make-network-process &rest ARGS) */)
3631 } 3631 }
3632#endif 3632#endif
3633 3633
3634 if (socktype == SOCK_STREAM && listen (s, backlog)) 3634 if (socktype != SOCK_DGRAM && listen (s, backlog))
3635 report_file_error ("Cannot listen on server socket", Qnil); 3635 report_file_error ("Cannot listen on server socket", Qnil);
3636 3636
3637 break; 3637 break;
@@ -3794,7 +3794,7 @@ usage: (make-network-process &rest ARGS) */)
3794 p->pid = 0; 3794 p->pid = 0;
3795 p->infd = inch; 3795 p->infd = inch;
3796 p->outfd = outch; 3796 p->outfd = outch;
3797 if (is_server && socktype == SOCK_STREAM) 3797 if (is_server && socktype != SOCK_DGRAM)
3798 p->status = Qlisten; 3798 p->status = Qlisten;
3799 3799
3800 /* Make the process marker point into the process buffer (if any). */ 3800 /* Make the process marker point into the process buffer (if any). */