Back to Home

XEphem Forum Message

Forums: Atm · Astrophotography · Blackholes · Blackholes2 · CCD · Celestron · Domes · Education
Eyepieces · Meade · Misc. · God and Science · SETI · Software · UFO · XEphem
RSS Button

Home | Discussion Forums | XEphem Ephemeris Software Discussion | Post
Login

Be the first pioneers to continue the Astronomy Discussions at our new Astronomy meeting place...
The Space and Astronomy Agora
Re: FIFO Is Ignoring Non-blocking Call

Forum List | Follow Ups | Post Message | Back to Thread Topics | In Response To
Posted by Elwood Downey on December 8, 2000 22:02:29 UTC

Hi Markus,

Hmm, this implies that ioctl(fd,FIONBIO) is failing. Try replacing it with this, which should be equivalent:

fcntl (fd, F_SETFL, O_NONBLOCK)

A different approach that would eliminate the need to do either of these would be to perform the open() in nonblocking mode in the first place:
if (!blocking) mode |= O_NONBLOCK; fd = open(szName,mode);
The only reason for all this nonblocking effort in the first place is just in case the lx200xed gets way ahead of XEphem's ability to show the marker, it won't cause lx200xed to hang and potentially not track a moving target reliably. A long shot to be sure, so commening out the die() is not such a bad approach in practice!

Elwood

Follow Ups:

Login to Post
Additional Information
Google
 
Web www.astronomy.net
DayNightLine
About Astronomy Net | Advertise on Astronomy Net | Contact & Comments | Privacy Policy
Unless otherwise specified, web site content Copyright 1994-2024 John Huggins All Rights Reserved
Forum posts are Copyright their authors as specified in the heading above the post.
"dbHTML," "AstroGuide," "ASTRONOMY.NET" & "VA.NET"
are trademarks of John Huggins