(Fmake_network_process): Only support server sockets
when we can make them non-blocking.
This commit is contained in:
parent
6995786da5
commit
75728599a0
1 changed files with 3 additions and 1 deletions
|
@ -2590,7 +2590,9 @@ usage: (make-network-process &rest ARGS) */)
|
|||
tem = Fplist_get (contact, QCserver);
|
||||
if (!NILP (tem))
|
||||
{
|
||||
#ifdef TERM
|
||||
/* Don't support network sockets when non-blocking mode is
|
||||
not available, since a blocked Emacs is not useful. */
|
||||
#if defined(TERM) || (!defined(O_NONBLOCK) && !defined(O_NDELAY))
|
||||
error ("Network servers not supported");
|
||||
#else
|
||||
is_server = 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue