diff options
author | des <des@FreeBSD.org> | 2004-08-20 10:23:22 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2004-08-20 10:23:22 +0000 |
commit | 573364fb6217683def520d19126f215b2940acb1 (patch) | |
tree | 2ee98d3fb37b740f860c9c1b501a613621c9cbb9 | |
parent | a05183855a89c8bbabbcc5df71978ffebe9c9201 (diff) | |
download | FreeBSD-src-573364fb6217683def520d19126f215b2940acb1.zip FreeBSD-src-573364fb6217683def520d19126f215b2940acb1.tar.gz |
Remove a couple of warnings and tweak an error message.
-rw-r--r-- | tools/tools/tinderbox/tbmaster.pl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/tools/tinderbox/tbmaster.pl b/tools/tools/tinderbox/tbmaster.pl index fbba91e7..92fa4f8 100644 --- a/tools/tools/tinderbox/tbmaster.pl +++ b/tools/tools/tinderbox/tbmaster.pl @@ -366,13 +366,11 @@ sub open_locked($;$$) { or last; if (!(@sb1 = stat(FILE))) { # Huh? shouldn't happen - warning("$fn: stat(): $!"); last; } if (!flock(FILE, LOCK_EX|LOCK_NB)) { # A failure here means the file can't be locked, or # something really weird happened, so just give up. - warning("$fn: flock(): $!"); last; } if (!(@sb2 = stat($fn))) { @@ -526,7 +524,7 @@ MAIN:{ } $lockfile = $1; $lock = open_locked($lockfile, O_CREAT, 0600) - or die("unable to acquire lock on $lockfile"); + or die("unable to acquire lock on $lockfile\n"); # Lock will be released upon termination. } |