Subject: CVS commit: src/lib/libutil
To: None <source-changes@NetBSD.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 03/19/2006 21:55:37
Module Name:	src
Committed By:	christos
Date:		Sun Mar 19 21:55:37 UTC 2006

Modified Files:
	src/lib/libutil: pidlock.c

Log Message:
Coverity CID 1209: Avoid negative close. While I am there fix bugs (open
returning 0 is ok). Reorganize code to factor out common parts, cleanup
syscall checking and error code return.


To generate a diff of this commit:
cvs rdiff -r1.13 -r1.14 src/lib/libutil/pidlock.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.