9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: rog@vitanuova.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] winname: undocumented file in rio.
Date: Tue,  6 May 2003 19:28:14 +0100	[thread overview]
Message-ID: <02618374130ebdd5134f41b110f18a3c@vitanuova.com> (raw)
In-Reply-To: <fe695b7abf0f8dd035c8a1c9cef2401b@plan9.escet.urjc.es>

> < .B winname
> < contains the string window.n1.n2 where n1 is the number for the window
> < and n2 is the number of times the window has been renamed. Typically it
> < indicates the number of resizes and moves it has suffered.

that reminds me: there's a bug in the way that rio uses winname
which can cause applications to fall over.

it's a race:
if i try to resize a window several times in quick succession, rio can
have destroyed a window's image before the application has actually
acquired it with namedimage().  various applications, including acme,
panic if this happens.

the problem is not fixable "properly" without adding some sort of
acknowledgment channel to rio so an application can tell rio that it
has successfully acquired the new image.  this seems like overkill,
especially as it's hardly ever a problem.

i think the best solution might just be to continue to use the old
image in the meantime, as the nature of the problem means that it will
resolve itself once the rest of the resize events have been delivered.
(after all, there *is* an image for the window, it just isn't the one
that the application currently has the name for).

does this seem reasonable? the implementation should
be trivial.

i have been bitten by this several times; having an acme window
suddenly die is most annoying!

  cheers,
    rog.



      reply	other threads:[~2003-05-06 18:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-24 18:09 paurea
2003-05-06 18:28 ` rog [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=02618374130ebdd5134f41b110f18a3c@vitanuova.com \
    --to=rog@vitanuova.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).