[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Axiom-developer] [#189 Graphics does not work on Debian]
From: |
anonymous |
Subject: |
[Axiom-developer] [#189 Graphics does not work on Debian] |
Date: |
Mon, 04 Jul 2005 16:57:02 -0500 |
Changes
http://page.axiom-developer.org/zope/mathaction/189GraphicsDoesNotWorkOnDebian/diff
--
??changed:
-test the below patch?
-
---- openpty.c.pamphlet.orig 2005-07-04 14:37:38.000000000 -0700
-+++ openpty.c.pamphlet 2005-07-04 14:39:23.000000000 -0700
-@@ -177,9 +177,32 @@
- if (ioctl(fds, I_PUSH, "ldterm") < 0)
- perror("ptyopen: Failed to push idterm");
- #endif
-+#if defined(LINUXplatform) /* Linux with old-style BSD pty's (not Unix98
devpts) */
-+ int looking = 1, i;
-+ int oflag = O_RDWR; /* flag for opening the pty */
-+
-+ for (i = 0; looking && i < 1000; i++) {
-+ makeNextPtyNames(controllerPath, serverPath);
-+ if (access(controllerPath, 6) != 0) continue;
-+ *controller = open(controllerPath, oflag, 0);
-+ if (*controller >= 0) {
-+ *server = open(serverPath, oflag, 0);
-+ if (*server > 0)
-[18 more lines...]
test the below patch?::
--- openpty.c.pamphlet.orig 2005-07-04 14:37:38.000000000 -0700
+++ openpty.c.pamphlet 2005-07-04 14:39:23.000000000 -0700
@@ -177,9 +177,32 @@
if (ioctl(fds, I_PUSH, "ldterm") < 0)
perror("ptyopen: Failed to push idterm");
#endif
+#if defined(LINUXplatform) /* Linux with old-style BSD pty's (not Unix98
devpts) */
+ int looking = 1, i;
+ int oflag = O_RDWR; /* flag for opening the pty */
+
+ for (i = 0; looking && i < 1000; i++) {
+ makeNextPtyNames(controllerPath, serverPath);
+ if (access(controllerPath, 6) != 0) continue;
+ *controller = open(controllerPath, oflag, 0);
+ if (*controller >= 0) {
+ *server = open(serverPath, oflag, 0);
+ if (*server > 0)
+ looking = 0;
+ else
+ close(*controller);
+ }
+ }
+ if (looking) {
+ fprintf(stderr, "Couldn't find a free pty.\n");
+ exit(-1);
+ }
+ return (*controller);
+#else
strcpy(serverPath,slavename);
*controller=fdm;
*server=fds;
+#endif
}
}
return(fdm);
--
forwarded from http://page.axiom-developer.org/zope/mathaction/address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Axiom-developer] [#189 Graphics does not work on Debian],
anonymous <=