drm: abort() on fatal flip failure

exit() would get stuck running exit handlers for global locks.
This commit is contained in:
Pierre-Loup A. Griffais 2021-12-18 00:49:20 -08:00
parent d87fe5a00d
commit eba963b9fa

View file

@ -809,7 +809,9 @@ int drm_commit(struct drm_t *drm, struct Composite_t *pComposite, struct VulkanP
if ( ret != -EBUSY && ret != -EACCES ) if ( ret != -EBUSY && ret != -EACCES )
{ {
exit( 1 ); drm_log.errorf( "fatal flip error, aborting" );
drm->flip_lock.unlock();
abort();
} }
drm->pending = drm->current; drm->pending = drm->current;