To: | |
---|---|
Subject: | [ts-7000] Re: Block problem when reading from a serial port. |
From: | "ledvinap" <> |
Date: | Mon, 29 Sep 2008 16:11:07 -0000 |
> Here is problem, everything works ok except when we want to close the serial > port. > > We want to unblock the serial port �read� and have the thread to finish. > > > We have try many different things to the file descriptor, like close the > file, changing the blocking mode, opening the port again,etc.. > Sending a signal to waiting thread could do the trick ... Another possibility is to wait for new data in select() with timeout and periodically check if port has been closed. ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/ts-7000/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/ts-7000/join (Yahoo! ID required) <*> To change settings via email: <*> To unsubscribe from this group, send an email to: <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ |
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | Re: [ts-7000] ts-7400 and linux 2.6.x kernel?, Pradip De |
---|---|
Next by Date: | Re: [ts-7000] TS7400:Recompile 2.6 Kernel, Pradip De |
Previous by Thread: | Re: [ts-7000] Block problem when reading from a serial port., David Hawkins |
Next by Thread: | [ts-7000] etch -> lenny, Theodore A. Roth |
Indexes: | [Date] [Thread] [Top] [All Lists] |
Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU