Home | History | Annotate | Download | only in libutil

Lines Matching defs:pidfile

1 /*	$NetBSD: pidfile.c,v 1.16 2021/08/01 15:29:29 andvar Exp $	*/
34 __RCSID("$NetBSD: pidfile.c,v 1.16 2021/08/01 15:29:29 andvar Exp $");
54 /* Closes pidfile resources.
69 /* Truncate, close and unlink an existent pidfile,
71 * The pidfile is truncated because we may have dropped permissions
111 /* Constructs a name for a pidfile in the default location (/var/run).
113 * the pidfile.
133 * If no path is given, use the last pidfile path, otherwise the default one. */
168 /* Locks the pidfile specified by path and writes the process pid to it.
169 * The new pidfile is "registered" in the global variables pidfile_fd,
194 /* If path has changed (no good reason), clean up the old pidfile. */
206 /* The pidfile is locked, return the process ID
239 * Historical behaviour is that pidfile is not re-written
245 pidfile(const char *path)