🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #1359

Bug in initializing epoch's x-connection

#1359
From: Philip Ross
Date: Fri, 12 Jun 1992 13:27
48 lines
2751 bytes
We have been experiencing a problem with the current release of epoch,
4.0 Patchlevel 2, running on a SUN IPC with SunOS 4.1.1.  

When using an IBM PC clone running an X emulator there is a limited
number of sockets available.  If an attempt is made to start an epoch client
when this limit is exceeded, epoch fails to initialise correctly and
goes into a state continuously using a large amount of CPU time.
This rogue epoch is not killed when the user logs off and remains
until a 'kill' signal is explicitly sent to it.

After some investigation the problem appears to be related to the
error handling in routine x_term_init() before calling
x_init_display().  The default IOErrorHandler is set to XIgnoreError;
consequently when epoch fails to make a successful connection it
appears to ignore the error (!) and goes into the compute loop.  As a
work around to the problem I have moved the line 

XSetIOErrorHandler (handler); 

to be immediately after the line

x_init_display ();

I am unsure if this is a sensible fix or indeed why the
IOErrorHandling is set to ignore system errors.  I would be grateful
if somebody who knows more about the workings of X and its interaction
with epoch would let me know.


Philip Ross    email: ross%athena@uk.ac.aberdeen
                  or  p.ross@uk.ac.aberdeen

Computer Officer,
University of Aberdeen,
Scotland.



/----------------------------------------------------------------------------\
| Philip Ross, Computer Officer | email: ross%athena@UK.AC.ABERDEEN          |
| Dept. Bio-Medical Physics     |    or  p.ross@uk.ac.aberdeen               |
| University of Aberdeen        |                                            |
| Foresterhill                  | [+44]-224-685645               (Fax)       |
| Aberdeen.  AB9 2ZD            | [+44]-224-681818 x53210        (Voice)     |
|----------------------------------------------------------------------------|
| 3 is not equal to 2, not even for large values of 2.                       |
\----------------------------------------------------------------------------/
Technical Details
Message-ID: <9206121327.AA19400@athaena.biomed.abdn>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ames!sun-barr!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!news.cis.ohio-state.edu!ross

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc7ee,97469f1c9114a1ca,start
X-Google-Attributes: gidfc7ee,public
X-Google-ArrivalTime: 1992-06-12 03:08:08 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ames!sun-barr!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!news.cis.ohio-state.edu!ross
From: ross@news.cis.ohio-state.edu (Philip Ross)
Newsgroups: gnu.epoch.misc
Subject: Bug in initializing epoch's x-connection
Message-ID: <9206121327.AA19400@athaena.biomed.abdn>
Date: 12 Jun 92 13:27:45 GMT
Sender: daemon@cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 48