[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] gpspipe timeout on select (fd==0)

From: Bernd Zeimetz
Subject: Re: [gpsd-dev] gpspipe timeout on select (fd==0)
Date: Tue, 07 Aug 2012 19:57:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120624 Icedove/10.0.5

On 08/06/2012 07:12 PM, George Lutz wrote:
> I can build and run the gpspipe example from the gpsd-3.7 library.  However, 
> the select( ) on the gps fd always times out.  I assume it's because the fd 
> returned from gps_open is always 0 (stdin), which is odd because gps_open( ) 
> does succeed when I pass it localhost:<validport>.

gps_open doesn't return a fd. See libgps(3).

Where did you find that gpspipe example you are talking about? The libgps
package in Ubuntu/Debian doesn't ship examples.

> In comparison, just running the gpspipe binary included in the gpsd library 
> does work ok.  This happens on 2 ubuntu systems using gcc to compile.  I'm 
> looking for ways to further debug this but if gps_open( ) is returning a bad 
> fd, I'm not sure why that would be or how I can work with that.
> Thanks for any help.

 Bernd Zeimetz                            Debian GNU/Linux Developer                      
 GPG Fingerprint: ECA1 E3F2 8E11 2432 D485  DD95 EB36 171A 6FF9 435F

reply via email to

[Prev in Thread] Current Thread [Next in Thread]