(Fmake_network_process): Only support server sockets

when we can make them non-blocking.
This commit is contained in:
Jason Rumney 2002-05-03 21:24:27 +00:00
parent 6995786da5
commit 75728599a0

View file

@ -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;