[vm][unix][bug][fix][OSProcess] Bad file descriptor bug when decapitating/recapitating the squeak display

Stephen Pair spair at advantive.com
Thu Feb 14 06:14:24 UTC 2002


The Bug: Using OSProcess to decapitate and recapitate a display will
often cause a multitude of "select: Bad file descriptor" errors.  Also,
socket serving becomes un-reliable after encountering these errors.

The attached solution solves the issue by adding a call to
aioStopHandling() from forgetXDisplay() (in sqXWindow.c).  This stops
the VM from attempting to poll the (now closed) file descriptor
associated with the X display.

This change is based on the sourceforge VM sources.  How does one go
about getting it checked into SF?

- Stephen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sqXWindow.c
Type: application/octet-stream
Size: 122591 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20020214/fbe136f9/sqXWindow.obj


More information about the Squeak-dev mailing list