Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Tcl_AsyncMark doesn't appear to wake the notifier under UNIX

Closed / Fixed217934ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2000-10-26 00:46:14
OriginalBugID: 3423 RFE
Version: 8.2.1
SubmitDate: '1999-11-05'
LastModified: '2000-04-04'
Severity: MED
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
RelatedBugIDs: 3862 4826
OS: Windows NT
OSVersion: 5.00.2128
FixedDate: '2000-10-25'
ClosedDate: '2000-04-04'


Name:
David Gravereaux

Comments:
Could someone verify this?

DesiredBehavior:
TclpAsyncMark is #define'd out in tclUnixPort.h and thus has no way to awake select() in Tcl_WaitForEvents (should the notifier be blocked).  I can't verify that this is true as I only spotted it reading the source and don't program for unix.

If this is true, I was wondering if a TclpAsyncMark could be added that would generate a proper signal to awake the blocking select?
welch Closed ticket [217934ffff]. [History diff]2000-10-26 08:10:54
dgp Ticket [217934ffff]: 3 changes [History diff]2001-04-14 02:44:10
nobodyplain2001-06-30 01:56:43
Logged In: NO 

Has this bug been fixed?  If so, what release.
davethomasplain2001-12-04 22:18:25
Logged In: YES 
user_id=393111



We have been using a work-around for this bug for a couple 
of years now.  On unix, the notifier is not awakened by a 
Tcl_AsyncMark if it's blocked in a select statement.  For 
example, if the application is driven by socket events, 
events posted using Tcl_AsyncMark won't be executed until 
the next socket readable event occurs.

So on unix, we always do a dummy write to a socket that 
we've bound a "dummy" handler.  The handler simply reads 
the socket and returns, but then the notifier processes 
the "real" event that we posted via Tcl_AsyncMark.

But this work around DOUBLES, the number of socket events 
that would otherwise need to be handled.

We're still using 8.3.0.  I can find no indication that 
this bug has been fixed in later releases.  What is the 
status?  Is there a fix or patch?

Thanks,

Dave Thomas
davygrvyplain2001-12-05 05:38:07
Logged In: YES 
user_id=7549

This is fixed in 8.4a2+ (around august 2000) and was also 
merged down to 8.3.4 (around august 2001).
Log in (anonymous is fine) to add a comment.