Give more information in "failed to close/remove lock file" error messages.
# -*- perl -*-
-# $Id: errorlib.in,v 1.24 2003/05/25 17:19:05 cjwatson Exp $
+# $Id: errorlib.in,v 1.25 2003/05/25 18:25:37 cjwatson Exp $
sub F_SETLK { 6; } sub F_WRLCK{ 1; }
$flockstruct= 'sslll'; # And there ought to be something for this too.
sub unfilelock {
local ($lockfile) = pop(@filelocks);
pop(@cleanups);
- eval 'close(FLOCK'.($#filelocks+1).');' || warn "failed to close lock file: $!";
- unlink($lockfile) || warn "failed to remove lock file: $!";
+ eval 'close(FLOCK'.($#filelocks+1).');' || warn "failed to close lock file $lockfile: $!";
+ unlink($lockfile) || warn "failed to remove lock file $lockfile: $!";
}
sub quit {