dix: Add optional terminate delay

Graphics / X.Org / X.Org Server - Olivier Fourdan [redhat.com] - 7 June 2021 15:28 UTC

When the command line option "-terminate" is used, it could be interesting to give it an optional grace period to let the Xserver running for a little longer in case a new connection occurs.

This adds an optional parameter to the "-terminate" command line option for this purpose.

v2: Use a delay in seconds instead of milliseconds (Martin Peres)
v3: Clarify man page entry, ensure terminateDelay is always >= 0, simplify TimerFree(). (Peter Hutterer)

6b47321bc dix: Add optional terminate delay
dix/dispatch.c | 43 +++++++++++++++++++++++++++++++++++++++++--
hw/xwayland/xwayland.pc.in | 1 +
include/dix.h | 1 +
man/Xserver.man | 5 ++++-
os/utils.c | 6 +++++-
5 files changed, 52 insertions(+), 4 deletions(-)

Upstream: cgit.freedesktop.org


  • Share