Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement vm.shutdown(wait=True) #1696
Comments
marmarek
added
enhancement
C: core
P: minor
labels
Jan 26, 2016
marmarek
added this to the Release 4.0 milestone
Jan 26, 2016
kalkin
referenced this issue
in QubesOS/qubes-core-admin
Aug 1, 2016
Merged
Add vm.shutdown(wait) #48
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Additionally there should be some timeout, after which VM gets killed. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
tasket
Mar 5, 2017
This would really be nice. Putting 'sleep' timers after vm.shutdown == :(
Maybe Qubes API could be more mindful of whether methods are/aren't synchronous and provide parameters to make them sync/async. Actually.... Qubes API could use ref doc, too.
tasket
commented
Mar 5, 2017
|
This would really be nice. Putting 'sleep' timers after vm.shutdown == :( Maybe Qubes API could be more mindful of whether methods are/aren't synchronous and provide parameters to make them sync/async. Actually.... Qubes API could use ref doc, too. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 5, 2017
Member
As for API docs, it exists for Qubes 4.0: http://qubes-core-admin.readthedocs.io/en/latest/
wait parameter is exactly for this sync/async distinction here. In Qubes 4.0 most (all?) actions results in an event, so it can be used for async calls - initiate a call and instead of waiting for it to finish, react later on an event.
|
As for API docs, it exists for Qubes 4.0: http://qubes-core-admin.readthedocs.io/en/latest/ |
marmarek commentedJan 26, 2016
And replace all loops waiting for VM shutdown with it.