Add option to hold lease on unexpected disconnect 38/26238/1
authorDamian Hobson-Garcia <dhobsong@igel.co.jp>
Mon, 22 Mar 2021 02:54:16 +0000 (11:54 +0900)
committerDamian Hobson-Garcia <dhobsong@igel.co.jp>
Tue, 6 Apr 2021 06:58:47 +0000 (15:58 +0900)
commitbd9df88e70982fb0de81664ebf928d1a414d2887
tree813254108a519a28430746dca668307bea6139fd
parent165bb55a61361306ded5b35aace4f660f99714be
Add option to hold lease on unexpected disconnect

If a client application crashes while owning a lease,
the lease will automatically be revoked and all references
freed to make it available for another (or the restarted
original) client to claim and continue display.  This will
cause the screen to blank while the lease is unowned.

Add an option to revoke the lease, but keep the reference to
the lease descriptor, so that the screen does not blank while
unowned.

This only has effect when a client exits without calling the
`dlm_release_lease` function. Otherwise the lease is revoked
and the descriptor dereferenced, just as before.

Bug-AGL: SPEC-3862

Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
Change-Id: I3fc2c8fde4118b6e298ba31807fd5fa4766a97dd
drm-lease-manager/lease-manager.c
drm-lease-manager/lease-manager.h
drm-lease-manager/lease-server.c
drm-lease-manager/lease-server.h
drm-lease-manager/main.c