mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-17 02:54:18 +00:00
lock_file_full: add missing trailing newline
When we do not instantly get the lock we print a respective message to stderr. This shows also up in the task logs, and if it's the last message before a 'Task OK' the UI gets confused an shows the task as erroneous. Keep the message as its a good feedback for the user to see why an op seems to do nothing, so simply add a trailing newline. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
62a8f27b99
commit
91bae4c070
@ -150,7 +150,7 @@ sub lock_file_full {
|
|||||||
or die "can't open file - $!\n";
|
or die "can't open file - $!\n";
|
||||||
|
|
||||||
if (!flock($fh, $mode|LOCK_NB)) {
|
if (!flock($fh, $mode|LOCK_NB)) {
|
||||||
print STDERR "trying to acquire lock...";
|
print STDERR "trying to acquire lock...\n";
|
||||||
my $success;
|
my $success;
|
||||||
while(1) {
|
while(1) {
|
||||||
$success = flock($fh, $mode);
|
$success = flock($fh, $mode);
|
||||||
|
Loading…
Reference in New Issue
Block a user