From owner-cvs-usrbin Thu Jan 9 11:53:24 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA18152 for cvs-usrbin-outgoing; Thu, 9 Jan 1997 11:53:24 -0800 (PST) Received: (from jdp@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA18145; Thu, 9 Jan 1997 11:53:23 -0800 (PST) Date: Thu, 9 Jan 1997 11:53:23 -0800 (PST) From: John Polstra Message-Id: <199701091953.LAA18145@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/lockf lockf.1 lockf.c Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jdp 97/01/09 11:53:23 Modified: usr.bin/lockf lockf.1 lockf.c Log: On failure, return various exit codes from . In particular, return EX_TEMPFAIL if the file was already locked. This makes it easier to distinguish between lock collisions and failures within the command being executed. Also, don't complain if the unlink() fails in the cleanup handler. It doesn't matter anyway, and it obscured the exit status returned from the command that was executed. Revision Changes Path 1.2 +21 -4 src/usr.bin/lockf/lockf.1 1.2 +13 -13 src/usr.bin/lockf/lockf.c