ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-list
python-list
Aborting a read with pySerial
by John Nagle other posts by this author
Nov 6 2009 9:22PM messages near this date
Re: Py2exe error | Re: Aborting a read with pySerial
I'm using pySerial to read from a serial port.
One thread reads from the port, with no timeout.
Another thread handles output and other tasks.  This works
fine until I want to shut down the program.  I can't reliably
break the program out of the read when it's waiting.  On Windows,
closing the serial port will abort the read, but that seems to have no
effect on Linux.

    I know, I could put a timeout on the read and handle all those
null returns.  Is there a better way?

				John Nagle
-- 
http://mail.python.org/mailman/listinfo/python-list
Thread:
John Nagle
Aahz

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved