From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,473b223d530d443 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-09-12 21:59:04 PST Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!udel!MathWorks.Com!uhog.mit.edu!grapevine.lcs.mit.edu!omega!drand From: drand@omega.x.org (Doug Rand) Newsgroups: comp.sys.dec Subject: Re: emacs 19 problem on alpha Date: 12 Sep 1994 22:13:05 GMT Organization: X Consortium Distribution: world Message-ID: <352jph$4ne@GRAPEVINE.LCS.MIT.EDU> References: NNTP-Posting-Host: omega.x.org X-Newsreader: TIN [version 1.2 PL2] Doug Rand (drand@omega.x.org) wrote: : I'm having a strange problem. I just upgraded from OSF/1 V2 to V3 : on alpha and I can no longer do dired. Tracking down the problem : I found that no data was coming back over the pipe emacs sets up : for the subprocess. Anyone know how to fix this? Better, does : anyone have a prebuilt copy of either lemacs or emacs-19 for alpha : with a fix? First, I want to thank the person from DEC for sending me a new version of callproc.c with the problem fixed. Good and fast work. I'll also note that the fix is in the patch to 19.26 on gatekeeper.dec.com for anyone else suffering the same malady. The same fix can be made to lucid emacs, just change the line calling read in callproc to != 0 instead of > 0 and add a clause so that the body of the loop isn't executed if nread is < 0. Everything seems to work fine. The root cause, from what he's told me and a little reading of a POSIX book, is that if you set the FD to non-blocking, you can get an error code if there isn't any data waiting, and this isn't a fatal error. So one should continue to try to read the pipe. -- Doug Rand X Consortium Disclaimer: We set the standards for disclaimers