Lines Matching defs:pidfile
1 /* $NetBSD: pidfile.c,v 1.2 2016/04/05 12:28:57 christos Exp $ */
37 __RCSID("$NetBSD: pidfile.c,v 1.2 2016/04/05 12:28:57 christos Exp $");
58 /* Deletes an existent pidfile iff it was created by this process. */
67 /* Registers an atexit(3) handler to delete the pidfile we have generated.
68 * We only register the handler when we create a pidfile, so we can assume
69 * that the pidfile exists.
86 /* Given a new pidfile name in 'path', deletes any previously-created pidfile
89 * If a previous file is deleted, returns 1, which means that a new pidfile
109 /* Constructs a name for a pidfile in the default location (/var/run). If
111 * the pidfile.
114 * path to the pidfile; NULL on failure. */
129 /* Creates a pidfile with the provided name. The new pidfile is "registered"
131 * call to pidfile(3) can check if we are recreating the same file or a new
165 pidfile(const char *path)