Patrice Dumas wrote:
> Hello,
> 
> I have read on the usleep man page that usleep is obsolete and should
> be replaced by nanosleep. It is done with the attached patch, together
> with some changes in configure.ac to find time.h. From a very quick 
> search on the web it seems that nanosleep is available on windows. 
> Some features of nanosleep aren't used by usleep (possibility to
> restart the sleep on signal interruption).
> 
> I have only checked that it builds, not that it does what is intended...
> 
> There is another advantage for nanosleep over usleep, it is that 
> a gnulib module exists, in case we want to use gnulib for portability
> at some point.
> 

> I can install that patch and do the same for kdbMonitorKeys_default
> if you agree on that change. Thoughts?
> 

    timeval tv = { 0, ...whatever.. }
    select(NULL,NULL,NULL, &tv);

is probably more portable than nanosleep and is small enough to just 
include directly in the Elektra source in an "_elektra_usleep" function.

-- 
Bardur Arantsson
<[EMAIL PROTECTED]>

- Hey! What kind of party is this? There's no booze and only one
hooker!
                                                Bender, 'Futurama'


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Registry-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/registry-list

Reply via email to