]> git.pld-linux.org Git - packages/XFree86.git/blobdiff - XFree86-xinitrace.patch
- fix for kernel 2.6 headers on sparc
[packages/XFree86.git] / XFree86-xinitrace.patch
index 710c9a3ab0223f50beead3b133f8b97f74bcf589..25ccb48013828b7a15001c8e97be475da1df0410 100644 (file)
@@ -1,6 +1,6 @@
---- XFree86-3.3.3.1/xc/programs/xinit/xinit.c.xinitrace        Tue Jun  8 12:41:23 1999
-+++ XFree86-3.3.3.1/xc/programs/xinit/xinit.c  Tue Jun  8 12:43:39 1999
-@@ -561,22 +561,32 @@
+--- XFree86-3.3.4.orig/xc/programs/xinit/xinit.c       Sun Jun 27 12:32:26 1999
++++ XFree86-3.3.4/xc/programs/xinit/xinit.c    Sun Aug  8 22:28:20 1999
+@@ -596,30 +596,40 @@
                        serverpid = -1;
                        break;
                }
@@ -8,7 +8,7 @@
 -               * kludge to avoid race with TCP, giving server time to
 -               * set his socket options before we try to open it,
 -               * either use the 15 second timeout, or await SIGUSR1.
-+              
++
 +              /* 
 +               * before we try the below kludge, see if we are already
 +               * ready to connect.  Fast CPUs with cached filesystems
 +               * pbrown@redhat.com - 06/08/1999
                 */
 -              alarm (15);
--              pause ();
++              if (waitforserver() == 0) {
++                      /*
++                       * kludge to avoid race with TCP, giving server time to
++                       * set his socket options before we try to open it,
++                       * either use the 15 second timeout, or await SIGUSR1.
++                       *
++                       * If your machine is substantially slower than 15 seconds,
++                       * you can easily adjust this value.
++                       */
++                      alarm (15);
+ #ifndef X_NOT_POSIX
+-              sigsuspend(&old);
+-              alarm (0);
+-              sigprocmask(SIG_SETMASK, &old, NULL);
++                      sigsuspend(&old);
++                      alarm (0);
++                      sigprocmask(SIG_SETMASK, &old, NULL);
+ #else
+-              sigpause (old);
 -              alarm (0);
--
-               if (waitforserver() == 0) {
+-              sigsetmask (old);
++                      sigpause (old);
++                      alarm (0);
++                      sigsetmask (old);
+ #endif
+-              if (waitforserver() == 0) {
 -                      Error("unable to connect to X server\r\n");
 -                      shutdown();
 -                      serverpid = -1;
-+                /*
-+                 * kludge to avoid race with TCP, giving server time to
-+                 * set his socket options before we try to open it,
-+                 * either use the 15 second timeout, or await SIGUSR1.
-+                 *
-+                 * If your machine is substantially slower than 15 seconds,
-+                 * you can easily adjust this value.
-+                 */
-+                alarm (15);
-+                pause ();
-+                alarm (0);
-+
-+                if (waitforserver() == 0) {
-+                  Error("unable to connect to X server\r\n");
-+                  shutdown();
-+                  serverpid = -1;
-+                }
++                      if (waitforserver() == 0) {
++                              Error("unable to connect to X server\r\n");
++                              shutdown();
++                              serverpid = -1;
++                      }
                }
                break;
        }
This page took 0.033109 seconds and 4 git commands to generate.