mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Style fixes courtesy of pjd.
This commit is contained in:
parent
719060e911
commit
4a25aa061a
2 changed files with 5 additions and 2 deletions
|
|
@ -100,7 +100,7 @@ function closes and removes a pidfile.
|
|||
.Pp
|
||||
The
|
||||
.Fn pidfile_fileno
|
||||
function returns the file descriptor for the open pid file.
|
||||
function returns the file descriptor for the open pidfile.
|
||||
.Sh RETURN VALUES
|
||||
The
|
||||
.Fn pidfile_open
|
||||
|
|
@ -118,7 +118,9 @@ will be set.
|
|||
The
|
||||
.Fn pidfile_fileno
|
||||
function returns the low-level file descriptor.
|
||||
It returns -1 and sets
|
||||
It returns
|
||||
.Li -1
|
||||
and sets
|
||||
.Va errno
|
||||
if a NULL
|
||||
.Vt pidfh
|
||||
|
|
|
|||
|
|
@ -270,6 +270,7 @@ pidfile_remove(struct pidfh *pfh)
|
|||
int
|
||||
pidfile_fileno(struct pidfh *pfh)
|
||||
{
|
||||
|
||||
if (pfh == NULL || pfh->pf_fd == -1) {
|
||||
errno = EDOOFUS;
|
||||
return (-1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue