From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103734,ddb2eb989154d181 X-Google-Attributes: gid103734,public X-Google-Thread: fee84,ddb2eb989154d181 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-03-02 22:25:31 PST Xref: gmd.de comp.unix.osf.osf1:2419 comp.windows.x:31891 Path: gmd.de!newsserver.jvnc.net!tiger!sutnfs!news-is-noda!donald!nirvana.cs.titech!wnoc-tyo-news!nec-tyo!nec-gw!sgiblab!swrinde!gatech!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!epflnews!disuns2.epfl.ch!disuns2.epfl.ch!not-for-mail From: monnier@di.epfl.ch (Stefan Monnier) Newsgroups: comp.unix.osf.osf1,comp.windows.x Subject: Re: blocked in an X lib Date: 3 Mar 1994 07:25:31 +0100 Organization: Ecole Polytechnique Federale de Lausanne Message-ID: <2l3vsr$7k1@disun41.epfl.ch> References: <2l2asc$5hq@disun41.epfl.ch> NNTP-Posting-Host: disun41.epfl.ch In article , Oliver Jones wrote: > xlock, xdm and their ilk often do XGrabServer. This causes > XOpenDisplay calls to hang in _XWaitForReadable rather than fail. > If a client is designed to attempt to connect to a grabbed > server, it needs a timer-signal-style escape hatch from this > hang. > I don't know why this thing grows without bound on alpha. The problem isn't quite that _XWaitForReadable hangs. In general (even with ctwm, as long as you don't use the animation feature), it just hangs until the dxpause or xlock releases the server and that's fine (it doesn't grow without bound in this case). The problem is that sometimes (specifically with ctwm&animation (the patchlevel 2 doesn't help here) and only if xlock has already been running for a while before ctwm calls XFetchName (which ends up in _XWaitForReadable)) the _XWaitForReadable grows without bounds and hangs FOR REAL (even if you exit xlock soon after: it will stay stuck in _XWaitForReadable). The growing size is probably due to the fact that it's not stuck in a 'select' call, but is actively stuck: the control doesn't get out of _XWaitForReadable but 'select' keeps being called. Given the rather specific circumstance, it's not too easy to decide whether it's ctwm's fault or Xlib's fault (at least it's not the Xserver's fault). That's why I asked to see if other people had already experienced that problem. Stefan -- ----------------------------------------------------- -- On the average, people seem to be acting normal -- -----------------------------------------------------