gpsd-dev
[Top][All Lists]
Advanced

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

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


From: Eckhart Wörner
Subject: [gpsd-dev] [PATCH] Use pselect() to reduce wakeups and avoid race conditions
Date: Fri, 13 Jan 2012 22:06:52 +0100
User-agent: KMail/4.8 rc2 (Linux/3.2.0-8-generic; KDE/4.7.97; x86_64; ; )

Hi,

attached patch replaces select() by pselect() in the gpsd main loop. This 
should make gpsd behaving nice when idle and avoids a race condition when 
multiple signals arrive shortly one after another.
if COMPAT_SELECT is defined, the code should behave exactly as it did before, 
for systems where pselect() isn't available. COMPAT_SELECT needs a 
configuration variable.

Eckhart

Attachment: gpsd-pselect.patch
Description: Text Data


reply via email to

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