78e07c
--- xorg-server-1.3.0.0/os/utils.c.jx	2007-04-25 13:28:05.000000000 -0400
78e07c
+++ xorg-server-1.3.0.0/os/utils.c	2007-04-30 14:33:04.000000000 -0400
78e07c
@@ -1725,6 +1725,8 @@
78e07c
     int pid;
78e07c
 } *pidlist;
78e07c
 
78e07c
+static sighandler_t old_alarm = NULL; /* XXX horrible awful hack */
78e07c
+
78e07c
 pointer
78e07c
 Popen(char *command, char *type)
78e07c
 {
78e07c
@@ -1746,11 +1748,15 @@
78e07c
 	return NULL;
78e07c
     }
78e07c
 
78e07c
+    /* Ignore the smart scheduler while this is going on */
78e07c
+    old_alarm = signal(SIGALRM, SIG_IGN);
78e07c
+
78e07c
     switch (pid = fork()) {
78e07c
     case -1: 	/* error */
78e07c
 	close(pdes[0]);
78e07c
 	close(pdes[1]);
78e07c
 	xfree(cur);
78e07c
+	signal(SIGALRM, old_alarm);
78e07c
 	return NULL;
78e07c
     case 0:	/* child */
78e07c
 	if (setgid(getgid()) == -1)
78e07c
@@ -1926,6 +1932,8 @@
78e07c
     /* allow EINTR again */
78e07c
     OsReleaseSignals ();
78e07c
     
78e07c
+    signal(SIGALRM, old_alarm);
78e07c
+
78e07c
     return pid == -1 ? -1 : pstat;
78e07c
 }
78e07c