Mercurial > emacs
changeset 45099:8a33d836b6fb
(Fmake_network_process): Only support server sockets
when we can make them non-blocking.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Fri, 03 May 2002 21:24:27 +0000 |
parents | 06120f91eb06 |
children | a1a171140219 |
files | src/process.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/process.c Fri May 03 20:43:53 2002 +0000 +++ b/src/process.c Fri May 03 21:24:27 2002 +0000 @@ -2590,7 +2590,9 @@ 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;