CVS commit: src/lib/libutil

"Roy Marples" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	roy
Date:		Thu Jun 11 21:13:47 UTC 2026

Modified Files:
	src/lib/libutil: pidfile.3 pidfile.c

Log Message:
pidfile: if locked but a pid cannot be read set errno = EAGAIN

As indicating it's locked is much more important than any error reading
it's contents as a pid.
This should help racy competition to lock first.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/lib/libutil/pidfile.3
cvs rdiff -u -r1.19 -r1.20 src/lib/libutil/pidfile.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.