summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2013-06-18 19:18:08 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2014-01-04 16:15:41 +0000
commitc3dfaaa43fa3fd45afaba88db648665a6da17f12 (patch)
tree93139c3369656b47cc23ac8a8a5838e1313a0d98 /hw
parent99c72465614b85417dc5383a98eedf3b797cac3c (diff)
Remove XOpenDisplay() retry code
Remove XOpenDisplay() retry code. This isn't a sensible thing for the application to be doing, and XWin server needs to retry much more than just XOpenDisplay().
Diffstat (limited to 'hw')
-rw-r--r--hw/xwin/winclipboard/thread.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/hw/xwin/winclipboard/thread.c b/hw/xwin/winclipboard/thread.c
index 69129cbe7..3b02d2a2f 100644
--- a/hw/xwin/winclipboard/thread.c
+++ b/hw/xwin/winclipboard/thread.c
@@ -111,7 +111,6 @@ winClipboardProc(Bool fUseUnicode, char *szDisplay)
int iMaxDescriptor;
Display *pDisplay = NULL;
Window iWindow = None;
- int iRetries;
int iSelectError;
Bool fShutdown = FALSE;
@@ -129,25 +128,8 @@ winClipboardProc(Bool fUseUnicode, char *szDisplay)
goto winClipboardProc_Done;
}
- /* Initialize retry count */
- iRetries = 0;
-
- /* Open the X display */
- do {
- pDisplay = XOpenDisplay(szDisplay);
- if (pDisplay == NULL) {
- ErrorF("winClipboardProc - Could not open display, "
- "try: %d, sleeping: %d\n", iRetries + 1, WIN_CONNECT_DELAY);
- ++iRetries;
- sleep(WIN_CONNECT_DELAY);
- continue;
- }
- else
- break;
- }
- while (pDisplay == NULL && iRetries < WIN_CONNECT_RETRIES);
-
/* Make sure that the display opened */
+ pDisplay = XOpenDisplay(szDisplay);
if (pDisplay == NULL) {
ErrorF("winClipboardProc - Failed opening the display, giving up\n");
goto winClipboardProc_Done;