qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] vl: change PID file path resolve error to warning


From: Fiona Ebner
Subject: Re: [PATCH] vl: change PID file path resolve error to warning
Date: Fri, 28 Oct 2022 09:11:57 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0

Am 27.10.22 um 14:17 schrieb Daniel P. Berrangé:
> On Thu, Oct 27, 2022 at 12:14:43PM +0200, Fiona Ebner wrote:
>> +            warn_report("not removing PID file on exit: cannot resolve PID 
>> file"
>> +                        " path: %s: %s", pid_file, strerror(errno));
>> +            return;
>>          }
> 
> I don't think using warn_report is desirable here.
> 
> If the behaviour of passing a pre-unlinked pidfile is considered
> valid, then we should allow it without printing a warning every
> time an application does this.
> 
> warnings are to highlight non-fatal mistakes by applications, and
> this is not a mistake, it is intentionally supported behaviour.
> 
> With regards,
> Daniel

But what if the path resolution fails in a scenario where the caller did
not pre-unlik the PID file? Should the warning only be printed when the
errno is not ENOENT? Might still not be accurate in all cases though.

Best Regards,
Fiona




reply via email to

[Prev in Thread] Current Thread [Next in Thread]