drm: abort() on fatal flip failure
exit() would get stuck running exit handlers for global locks.
This commit is contained in:
parent
d87fe5a00d
commit
eba963b9fa
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue