mutex?

David Collier from_busybox_maillist at dexdyne.com
Thu Dec 2 10:59:00 UTC 2010


I have a .sh file which appends to the end of a log file. It is called
from a number of different shells.

Clearly if I start 2 copies at once, there's a risk they will argue.

Is there any way to set up a mutex, so that only one copy can run at a
time?

There's some c code that writes it, and that uses flock - can I share
that lock?

TVM

D


More information about the busybox mailing list