- From: David Schleef <ds_at_schleef.org>
- Date: Sat, 19 Mar 2005 10:49:01 -0800
On Wed, Mar 16, 2005 at 04:08:37PM +0000, Daniel Nilsson wrote: > I'm only concerned with input at this time, checking for the number of > samples received seems reasonable. My only concern with this is error > handling, which I don't know how to check for. Is it reasonable to think that > if I'm just waiting in a loop to see if I have sampled all my data that the > hardware could take some kind of error and stop ? In that case, I'm worrying > about being stuck in the loop waiting for data forever. Can I check somehow if > the command is process died due to an error ? read() returns 0 if the subdevice has stopped normally, or EPIPE if there was an error. dave...
Received on 2005-03-19Z18:49:01