gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] [PATCH] Use pselect() to reduce wakeups and avoid race co


From: Greg Troxel
Subject: Re: [gpsd-dev] [PATCH] Use pselect() to reduce wakeups and avoid race conditions
Date: Sat, 14 Jan 2012 10:17:45 -0500
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.3 (berkeley-unix)

"Eric S. Raymond" <address@hidden> writes:

>> Greg Troxel <address@hidden>:
>> But, pselect is specified by posix:
>> 
>>   http://pubs.opengroup.org/onlinepubs/009695399/functions/select.html
>> 
>> and is available in NetBSD 5 (perhaps earlier) and FreeBSD from 2002
>> (and also in OS X 10.7, with the same FreeBSD man page), so I don't see
>> any issue in relying on it.
>
> Er, openbsd.  pselect() only would be a crash landing for Chris Kuethe.

Indeed - sorry, I didn't mean to leave that out, I just didn't have it
handy to check.

> It's not a problem, though. pselect() is easy to check for; the
> autonfiguration in scons took me a whole 3 minutes to write, and
> keeping the select() code path adds only a very little complexity.
> The work Mike Frysinger and are are doing on cleaning up the 
> signal handling should reduce that increment.

Certainly using it when present and coping without is totally
reasonable.

Attachment: pgpOv6e9a9h5p.pgp
Description: PGP signature


reply via email to

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