Re: [libvirt] [PATCH v2] tools: console: Relax stream EOF handling

2019-08-20 Thread Roman Bolshakov
On Mon, Aug 12, 2019 at 07:01:47PM -0300, Daniel Henrique Barboza wrote: > The comment I have here is that you're changing virConsoleShutdown > API for all callers, with this new boolean value 'needAbort', because of a > scenario (virStreamRecv being called before) that happens only on >

Re: [libvirt] [PATCH v2] tools: console: Relax stream EOF handling

2019-08-13 Thread Michal Privoznik
On 8/13/19 12:01 AM, Daniel Henrique Barboza wrote: The comment I have here is that you're changing virConsoleShutdown API for all callers, with this new boolean value 'needAbort', because of a scenario (virStreamRecv being called before) that happens only on virConsoleEventOnStream. This is

Re: [libvirt] [PATCH v2] tools: console: Relax stream EOF handling

2019-08-12 Thread Daniel Henrique Barboza
The comment I have here is that you're changing virConsoleShutdown API for all callers, with this new boolean value 'needAbort', because of a scenario (virStreamRecv being called before) that happens only on virConsoleEventOnStream. This is what I wondered in the review of the previous version

[libvirt] [PATCH v2] tools: console: Relax stream EOF handling

2019-08-12 Thread Roman Bolshakov
Regular VM shutdown triggers the error for existing session of virsh console and it returns with non-zero exit code: error: internal error: console stream EOF The message and status code are misleading because there's no real error. virStreamRecv returns 0 when the end of the stream is reached.