Re: [PATCH v2] report error when virProcessGetStatInfo() is unable to parse data

2022-01-11 Thread Peter Krempa
On Tue, Jan 11, 2022 at 15:16:36 +0530, Ani Sinha wrote: > > > On Tue, 11 Jan 2022, Michal Prívozník wrote: > > > On 1/11/22 04:42, Ani Sinha wrote: > > > Currently virProcessGetStatInfo() always returns success and only logs > > > error > > > when it is unable to parse the data. Make this

Re: [PATCH v2] report error when virProcessGetStatInfo() is unable to parse data

2022-01-11 Thread Ani Sinha
On Tue, 11 Jan 2022, Michal Prívozník wrote: > On 1/11/22 04:42, Ani Sinha wrote: > > Currently virProcessGetStatInfo() always returns success and only logs error > > when it is unable to parse the data. Make this function actually report the > > error and return a negative value in this error

Re: [PATCH v2] report error when virProcessGetStatInfo() is unable to parse data

2022-01-11 Thread Michal Prívozník
On 1/11/22 04:42, Ani Sinha wrote: > Currently virProcessGetStatInfo() always returns success and only logs error > when it is unable to parse the data. Make this function actually report the > error and return a negative value in this error scenario. > > Fix the callers so that they do not

[PATCH v2] report error when virProcessGetStatInfo() is unable to parse data

2022-01-10 Thread Ani Sinha
Currently virProcessGetStatInfo() always returns success and only logs error when it is unable to parse the data. Make this function actually report the error and return a negative value in this error scenario. Fix the callers so that they do not override the error generated. Signed-off-by: Ani

[PATCH v2] report error when virProcessGetStatInfo() is unable to parse data

2022-01-07 Thread Ani Sinha
Currently virProcessGetStatInfo() always returns success and only logs error when it is unable to parse the data. Make this function actually report the error and return a negative value in this error scenario. Fix the callers so that they do not override the error generated. Signed-off-by: Ani