- Prototypes, defines, and includes for
semaphore functions.
The semutil program is a utility that can remove a semaphore,
increment (release) a semaphore, decrement (wait on) a
semaphore, and display the value of a semaphore.
Semaphores are used by the mlogwrite
program to control concurrent writes to the message log. The
semutil program can be used to manipulate this semaphore (or
any other you have permission for). For example, if the mlogwrite
program begins an operation to write to the message log and is
killed before it completes and releases the semaphore, all other
logwrite()s will wait indefinitely for the semaphore to be
released. Use this program to release the semaphore and let the
other logwrite()s execute.
See the file INSTALL for
compilation and installation instructions.