Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
84b31826
Commit
84b31826
authored
Dec 03, 2009
by
Stefan Monnier
Browse files
(Fmake_network_process): Fix up the tests for
"connectionless socket", so they DTRT for seqpacket sockets as well.
parent
f00c449b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
etc/NEWS
etc/NEWS
+2
-0
src/ChangeLog
src/ChangeLog
+5
-0
src/process.c
src/process.c
+4
-4
No files found.
etc/NEWS
View file @
84b31826
...
...
@@ -354,6 +354,8 @@ the variable `byte-compile-compatibility') has been removed.
* Lisp changes in Emacs 23.2
** make-network-socket can now also create `seqpacket' Unix sockets.
** New function `completion-in-region' to use the standard completion
facilities on a particular region of text.
...
...
src/ChangeLog
View file @
84b31826
2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
* process.c (Fmake_network_process): Fix up the tests for
"connectionless socket", so they DTRT for seqpacket sockets as well.
2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
* process.c (Qseqpacket): New symbol.
...
...
src/process.c
View file @
84b31826
...
...
@@ -3333,7 +3333,7 @@ usage: (make-network-process &rest ARGS) */)
QCaddress = is_server ? QClocal : QCremote;
/* :nowait BOOL */
if (!is_server && socktype
=
= SOCK_
STRE
AM
if (!is_server && socktype
!
= SOCK_
DGR
AM
&& (tem = Fplist_get (contact, QCnowait), !NILP (tem)))
{
#ifndef NON_BLOCKING_CONNECT
...
...
@@ -3428,7 +3428,7 @@ usage: (make-network-process &rest ARGS) */)
Some kernels have a bug which causes retrying connect to fail
after a connect. Polling can interfere with gethostbyname too. */
#ifdef POLL_FOR_INPUT
if (socktype
=
= SOCK_
STRE
AM)
if (socktype
!
= SOCK_
DGR
AM)
{
record_unwind_protect (unwind_stop_other_atimers, Qnil);
bind_polling_period (10);
...
...
@@ -3631,7 +3631,7 @@ usage: (make-network-process &rest ARGS) */)
}
#endif
if (socktype
=
= SOCK_
STRE
AM && listen (s, backlog))
if (socktype
!
= SOCK_
DGR
AM && listen (s, backlog))
report_file_error ("Cannot listen on server socket", Qnil);
break;
...
...
@@ -3794,7 +3794,7 @@ usage: (make-network-process &rest ARGS) */)
p->pid = 0;
p->infd = inch;
p->outfd = outch;
if (is_server && socktype
=
= SOCK_
STRE
AM)
if (is_server && socktype
!
= SOCK_
DGR
AM)
p->status = Qlisten;
/* Make the process marker point into the process buffer (if any). */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment