From xemacs-m  Wed Dec 18 12:27:59 1996
Received: from UCSD.EDU (mailbox2.ucsd.edu [132.239.1.54])
          by xemacs.cs.uiuc.edu (8.8.4/8.8.4) with ESMTP
	  id MAA03870 for <xemacs-beta@xemacs.org>; Wed, 18 Dec 1996 12:27:59 -0600 (CST)
Received: from sdnp5.ucsd.edu (sdnp5.ucsd.edu [132.239.79.10]) by UCSD.EDU (8.8.3/8.6.9) with SMTP id KAA23216; Wed, 18 Dec 1996 10:28:00 -0800 (PST)
Received: by sdnp5.ucsd.edu (SMI-8.6/SMI-SVR4)
	id KAA14428; Wed, 18 Dec 1996 10:26:14 -0800
Sender: dmoore@sdnp5.ucsd.edu
To: Ben Wing <ben@666.com>
Cc: XEmacs Beta Mailing List <xemacs-beta@xemacs.org>
Subject: Re: sit-for bug & patch
References: <199612181012.CAA26321@shellx.best.com>
X-Face: "oX;zS#-JU$-,WKSzG.1gGE]x^cIg!hW.dq>.f6pzS^A+(k!T|M:}5{_%>Io<>L&{hO7W4cicOQ|>/lZ1G(m%7iaCf,6Qgk0%%Bz7b2-W3jd0m_UG\Y;?]}4s0O-U)uox>P3JN)9cm]O\@,vy2e{`3pb!"pqmRy3peB90*2L
From: David Moore <dmoore@UCSD.EDU>
Date: 18 Dec 1996 10:26:14 -0800
In-Reply-To: Ben Wing's message of Wed, 18 Dec 1996 02:12:43 -0800 (PST)
Message-ID: <rvengnyaih.fsf@sdnp5.ucsd.edu>
Lines: 24
X-Mailer: Red Gnus v0.76/XEmacs 19.15

Ben Wing <ben@666.com> writes:

> You need to use record_unwind_protect() to decrement already_in_sit_for.
> In any case though your solution is not correct.  You need to write a
> function that scans pending_timeout_list for a specified id, and use it in
> place of this code:

	I was thinking of installing a function on the timeout event
which cleared a go ahead flag for each particular nesting level, then no
matter which combination of sit-for, sleep-for and accept-process-output
you have, they should unroll correctly.  If you scan
pending_timeout_list, won't you not run any of the other available timed
events when you do (sit-for 0).  The comments above suggest that the
sit-for was explictly changed to run those events in that case.

	And yes, the previous solution was not correct, but I mentioned
that when I sent it.


-- 
David Moore <dmoore@ucsd.edu>       | Computer Systems Lab      __o
UCSD Dept. Computer Science - 0114  | Work: (619) 534-8604    _ \<,_
La Jolla, CA 92093-0114             | Fax:  (619) 534-1445   (_)/ (_)
<URL:http://oj.egbt.org/dmoore/>    | In a cloud bones of steel.

