]> xenbits.xensource.com Git - pvdrivers/win/xencons.git/commit
Ensure handles are closed when pipe disconnects
authorOwen Smith <owen.smith@citrix.com>
Tue, 29 Aug 2017 10:07:48 +0000 (11:07 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Tue, 29 Aug 2017 10:07:48 +0000 (11:07 +0100)
commit5cbe28d67e7ed0cd3dc7615c14ef36efd808306c
treedfefdc735edf2416f15f3b8cb141bbec53b510c6
parentb2c2e8fb3209beed2b2edca33b4be6b2c2f93dcf
Ensure handles are closed when pipe disconnects

Fixes leaks where the pipe handles were not closed, preventing new
connections. Fixes the MONITOR_PIPE context leaking when its thread
is stopped.

Signed-off-by: Owen Smith <owen.smith@citrix.com>
Since error gotos are introduced, have them do the cleanup. The scope of
Pipe and Instance needs to be widened but it keeps the code neater overall.
Also removed the unnecessary newlines in the log messages.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/monitor/monitor.c