From dfbe8b93f3a7f5019facec191890290f61ed0067 Mon Sep 17 00:00:00 2001 From: des Date: Tue, 21 Mar 2006 08:08:58 +0000 Subject: Open the lock file write-only. --- tools/tools/tinderbox/tbmaster.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/tools/tinderbox/tbmaster.pl b/tools/tools/tinderbox/tbmaster.pl index 3753022..12dbc05 100644 --- a/tools/tools/tinderbox/tbmaster.pl +++ b/tools/tools/tinderbox/tbmaster.pl @@ -575,7 +575,7 @@ MAIN:{ die("invalid lockfile\n"); } $lockfile = $1; - $lock = open_locked($lockfile, O_CREAT, 0600) + $lock = open_locked($lockfile, O_WRONLY|O_CREAT, 0600) or die("unable to acquire lock on $lockfile\n"); # Lock will be released upon termination. } -- cgit v1.1