Linux C, preventing my app from blocking in fgets (file stream reading) -- 2

I have a small C program on a Raspi (Raspbian system), reading some measure values from an IRDA sensor that can be evaluated using /dev/ttyUSB0. In some rare cases, the sensor does not respond to my initialization call, and my fgets() call blocks my program infinitely. I need some trick to circumvent this case. Tried several ideas without success.

Skills: C Programming, Linux

See more: stream programming, fgets c programming, c programming fgets, php ajax file stream, file stream vb net tcp, convert jpg file stream, play mp3 swf file stream, innosetup file stream read vista, generating sdp file stream vlc, flash media server file stream video playlist live, vlc file stream via wme, listen file stream fms, protect flv file stream rtmp

About the Employer:
( 1 review ) Niedernhausen, Germany

Project ID: #9712136

Awarded to:


A proposal has not yet been provided

$30 USD in 1 day
(1 Review)