VNC prevents X server restarting even when -reset is explicitly given. Print
out message with explanation and terminate instead.
static void vfbClientStateChange(CallbackListPtr *a, void *b, void *c) {
- dispatchException &= ~DE_RESET;
+ if (dispatchException & DE_RESET) {
+ ErrorF("Warning: VNC extension does not support -reset, terminating instead. Use -noreset to prevent termination.\n");
+
+ dispatchException |= DE_TERMINATE;
+ dispatchException &= ~DE_RESET;
+ }
}
#if XORG >= 113