MCPcopy Create free account
hub / github.com/F-Stack/f-stack / test_pidfile_contested

Function test_pidfile_contested

tools/libutil/tests/pidfile_test.c:243–251  ·  view source on GitHub ↗

* Test that pidfile_open() fails when attempting to open a pidfile that * is already locked, and that it returns the correct PID. */

Source from the content-addressed store, hash-verified

241 * is already locked, and that it returns the correct PID.
242 */
243static const char *
244test_pidfile_contested(void)
245{
246 const char *fn = "test_pidfile_contested";
247 const char *result;
248
249 result = common_test_pidfile_child(fn, 0);
250 return (result);
251}
252
253/*
254 * Test that the pidfile lock is inherited.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected