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

2022-01-12 Thread Michal Prívozník
On 1/11/22 19:14, Ani Sinha wrote: > > > On Tue, 11 Jan 2022, Michal Prívozník wrote: > >> On 1/11/22 11:20, 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 >>>

Re: [PATCH v3] 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 11:20, 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 v3] report error when virProcessGetStatInfo() is unable to parse data

2022-01-11 Thread Michal Prívozník
On 1/11/22 11:20, 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 v3] report error when virProcessGetStatInfo() is unable to parse data

2022-01-11 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. Also fix non-linux