Article View: gnu.emacs.bug
Article #98514re: 18.57 emacs sub-processes are hosed n ways.
From: Wolfgang S. Rupprecht
Date: Thu, 04 Jul 1991 10:34
Date: Thu, 04 Jul 1991 10:34
42 lines
1928 bytes
1928 bytes
More info:
It appears that SUNOS 4.1 uses EAGAIN in a novel and interesting way.
Perhaps this relates to the new-fangled tty streams implementation, I
don't really know.
The observation: After outputting appoximately 950 bytes the to the
sub-process tty write returns with -1 and errno set to EAGAIN. This
is a non-persistant error, and treating it the same as EWOULDBLOCK
*seems* to do the trick for me.
Here is the diff:
diff started at Thu Jul 4 14:24:47
cd /usr/local/emacs/src/
diff -c process.c.~1~ process.c
*** process.c.~1~ Tue Jan 15 20:28:48 1991
--- process.c Thu Jul 4 14:20:17 1991
***************
*** 1908,1914 ****
if (rv < 0)
{
#ifdef EWOULDBLOCK
! if (errno == EWOULDBLOCK)
{
/* It would be nice to accept process output here,
but that is difficult. For example, it could
--- 1908,1914 ----
if (rv < 0)
{
#ifdef EWOULDBLOCK
! if ((errno == EWOULDBLOCK) || errno == EAGAIN)
{
/* It would be nice to accept process output here,
but that is difficult. For example, it could
diff exited abnormally with code 1 at Thu Jul 4 14:24:48
-wolfgang
---
Wolfgang Rupprecht wolfgang@wsrcc.com (or) uunet!wsrcc!wolfgang
Snail Mail Address: Box 6524, Alexandria, VA 22306-0524
Technical Details
Message-ID:
<9107041834.AA03528@wsrcc.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!wsrcc.COM!wolfgangShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,15be2d21a83994de X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1991-07-04 03:34:28 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!wsrcc.COM!wolfgang From: wolfgang@wsrcc.COM (Wolfgang S. Rupprecht) Newsgroups: gnu.emacs.bug Subject: re: 18.57 emacs sub-processes are hosed n ways. Message-ID: <9107041834.AA03528@wsrcc.com> Date: 4 Jul 91 10:34:28 GMT Sender: gnulists@ai.mit.edu Distribution: gnu Organization: Wolfgang S Rupprecht Computer Consulting, Washington DC. Lines: 42 Approved: bug-gnu-emacs@prep.ai.mit.edu