diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2021-04-28 13:33:29 +0200 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2021-06-07 17:28:05 +0200 |
commit | 6b47321bc6138bcd737b36e038aba904d56f1cf6 (patch) | |
tree | 898d6226692360555d81f1cc0e1b5bdca235aa0e /include | |
parent | e167299f6050d85778e62ed2a1e544ceef6452fc (diff) | |
download | xserver-6b47321bc6138bcd737b36e038aba904d56f1cf6.tar.gz |
dix: Add optional terminate delay
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 <martin.peres@mupuf.org>)
v3: Clarify man page entry, ensure terminateDelay is always >= 0,
simplify TimerFree(). (Peter Hutterer <peter.hutterer@who-t.net>)
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/dix.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dix.h b/include/dix.h index 432bdcc35..ff3a18ccf 100644 --- a/include/dix.h +++ b/include/dix.h @@ -130,6 +130,7 @@ extern _X_EXPORT ClientPtr clients[MAXCLIENTS]; extern _X_EXPORT ClientPtr serverClient; extern _X_EXPORT int currentMaxClients; extern _X_EXPORT char dispatchExceptionAtReset; +extern _X_EXPORT int terminateDelay; typedef int HWEventQueueType; typedef HWEventQueueType *HWEventQueuePtr; |