From: monnier@di.epfl.ch (Stefan Monnier)
Subject: Re: blocked in an X lib
Date: 3 Mar 1994 07:25:31 +0100 [thread overview]
Message-ID: <2l3vsr$7k1@disun41.epfl.ch> (raw)
In-Reply-To: CM2Js3.89H@world.std.com
In article <CM2Js3.89H@world.std.com>, Oliver Jones <oj@world.std.com> 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 --
-----------------------------------------------------
prev parent reply other threads:[~1994-03-03 6:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-03-02 15:20 blocked in an X lib Stefan Monnier
1994-03-02 19:37 ` Dave Hill WhatGE
1994-03-03 3:16 ` Oliver Jones
1994-03-03 6:25 ` Stefan Monnier [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox