Add option to hold lease on unexpected disconnect sandbox/dhobsong/keep-lease-on-disconnect
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>
Wed, 31 Mar 2021 01:24:48 +0000 (10:24 +0900)
commit2213b208db1d4d2a8cdcb52f50a154b0c9ea2512
tree813254108a519a28430746dca668307bea6139fd
parent0167eeb91413642e09cca3aaa5602050223b035f
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