diff options
author | Ed Maste <emaste@FreeBSD.org> | 2024-06-03 16:17:02 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2024-06-03 16:19:54 +0000 |
commit | 1b2aa3deeb0dbbace9fed635fa01b6f6e8480901 (patch) | |
tree | d4f991a92b1c7c84e264b900f50f2fa0202c872a /compat/pidfile.c | |
parent | 96dba636abec6d5451820add99300bda2ca6d86a (diff) |
Diffstat (limited to 'compat/pidfile.c')
-rw-r--r-- | compat/pidfile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compat/pidfile.c b/compat/pidfile.c index 9dfd9c468a7a..8d2e5a838c0e 100644 --- a/compat/pidfile.c +++ b/compat/pidfile.c @@ -1,4 +1,4 @@ -/* $NetBSD: pidfile.c,v 1.14 2016/04/12 20:40:43 roy Exp $ */ +/* $NetBSD: pidfile.c,v 1.16 2021/08/01 15:29:29 andvar Exp $ */ /*- * Copyright (c) 1999, 2016 The NetBSD Foundation, Inc. @@ -131,7 +131,7 @@ pidfile_varrun_path(char *path, size_t len, const char *bname) } /* Returns the process ID inside path on success, otherwise -1. - * If no path is given, use the last pidfile path, othewise the default one. */ + * If no path is given, use the last pidfile path, otherwise the default one. */ pid_t pidfile_read(const char *path) { @@ -239,7 +239,7 @@ return_pid: if (errno == EAGAIN) { /* The pidfile is locked, return the process ID * it contains. - * If sucessful, set errno to EEXIST. */ + * If successful, set errno to EEXIST. */ if ((pid = pidfile_read(path)) != -1) errno = EEXIST; } else |