bogoserver
Otavio Salvador
otavio at debian.org
Tue Aug 23 19:08:54 UTC 2005
Fabio Fabbri <fabio at llgp.org> writes:
> martin f krafft wrote:
>
>> while [ ! -e/var/run/my_semaphore ]; do sleep 1; done
>
> I don't consider this a semaphore. A semaphore should avoid busy
> waiting. Using my implementation, busy waiting is avoided, and the
> script can go on immediately (when the task is scheduled), without the 1
> second sleep. Exaggerating, using this kind of semaphores boot may
> become slower...
I think we can't be sure to have /var mounted at this time. Or I'm wrong?
--
O T A V I O S A L V A D O R
---------------------------------------------
E-mail: otavio at debian.org UIN: 5906116
GNU/Linux User: 239058 GPG ID: 49A5F855
Home Page: http://www.freedom.ind.br/otavio
---------------------------------------------
"Microsoft gives you Windows ... Linux gives
you the whole house."
More information about the initscripts-ng-devel
mailing list