emacs-devel
[Top][All Lists]
Advanced

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

Re: busyloop in sigchld_handler


From: Chong Yidong
Subject: Re: busyloop in sigchld_handler
Date: Wed, 28 Mar 2007 11:19:03 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.96 (gnu/linux)

> Do all platforms have usleep ?

usleep is not in POSIX, so we can't assume it exists.

> Otherwise, we need a check in configure and use
>
> #ifdef HAVE_USLEEP
>     usleep(1000);
> #endif

... or we could use nanosleep, which is in POSIX.




reply via email to

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