gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] EBADF in main select (Roy Barkas's bug)


From: Roy Barkas
Subject: Re: [gpsd-dev] EBADF in main select (Roy Barkas's bug)
Date: Mon, 18 Aug 2014 16:09:39 +1000

Thanks Eric, I'll give it a try as soon as time-demands permit and let you know (probably tomorrow)

Roy


On Mon, Aug 18, 2014 at 3:56 PM, Eric S. Raymond <address@hidden> wrote:
A little research indicated that fcntl(fd, F_GETFL, 0) is about the
most lightweight to validate a file descriptor.  Accordingly, I have
added some recovery code to gpsd_await_input().

Roy, please test the head version.  You should no longer get "bad file
descriptor" and termination.

Ideally there's some cleanup actions that should be added, but that
would require a library verson bump of libgpsd - not the user-facing
API so probably OK, but I'd prefer to hold that until after 3.11.
--
                <a href="" href="http://www.catb.org/~esr/" target="_blank">http://www.catb.org/~esr/">Eric S. Raymond</a>

When all government ...in little as in great things... shall be drawn to
Washington as the center of all power; it will render powerless the checks
provided of one government on another, and will become as venal and oppressive
as the government from which we separated."     -- Thomas Jefferson, 1821


reply via email to

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