ui/cocoa: Do not exit immediately after shutdown
commit40c0193739eb08f76505f736c259928279d0376a
authorAkihiko Odaki <akihiko.odaki@gmail.com>
Fri, 19 Feb 2021 11:16:52 +0000 (19 20:16 +0900)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 15 Mar 2021 16:37:50 +0000 (15 17:37 +0100)
tree966c50293c088391558c1bbc07b24c9c842350eb
parent14c235eb40eb82e0d7e89601b1a47028fe24deca
ui/cocoa: Do not exit immediately after shutdown

ui/cocoa used to call exit immediately after calling
qemu_system_shutdown_request, which prevents QEMU from actually
perfoming system shutdown. Just sleep forever, and wait QEMU to call
exit and kill the Cocoa thread.

Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Message-Id: <20210219111652.20623-1-akihiko.odaki@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/cocoa.m