libxl: handle the return value of wait_for_dev_destroy select
authorRoger Pau Monne <roger.pau@entel.upc.edu>
Wed, 2 Nov 2011 17:06:04 +0000 (17:06 +0000)
committerRoger Pau Monne <roger.pau@entel.upc.edu>
Wed, 2 Nov 2011 17:06:04 +0000 (17:06 +0000)
commit331f2c59fdd7eaf575f7c3d75ce143d9aa6aaf7d
tree7e38de577e299bcc4e207a56a45fdf66b650fad7
parent93bf609a7782a612706e452a71913807ba28d22e
libxl: handle the return value of wait_for_dev_destroy select

Handle the return value of the select call inside wait_for_dev_destroy
properly, and return 0 if a device is removed, or ERROR_* if a timeout
or error happened. Use the return value of wait_for_dev_destroy inside
libxl__device_remove to properly return from that function.

Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.h
tools/libxl/libxl_device.c