mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 07:37:25 -04:00
Open the lock file write-only.
This commit is contained in:
parent
5990647d42
commit
e2ed8189e9
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue