summaryrefslogtreecommitdiff
path: root/debian/patches/solaris-push-check.patch
blob: 10f8e2bf11dee1a1e1b39c4fafb9b3a781fb2110 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: don't push modules if already pushed
Index: screen/pty.c
===================================================================
--- screen.orig/pty.c	2013-07-27 06:08:50.928542103 +0400
+++ screen/pty.c	2013-07-27 06:11:28.473309177 +0400
@@ -137,6 +137,8 @@
   if (f < 0)
     return;
 #if defined(I_PUSH) && defined(HAVE_SVR4_PTYS) && !defined(sgi) && !defined(linux) && !defined(__GLIBC__) && !defined(__osf__) && !defined(M_UNIX)
+  if (0 != ioctl(f, I_FIND, "ldterm"))
+    return;
   if (ioctl(f, I_PUSH, "ptem"))
     Panic(errno, "InitPTY: cannot I_PUSH ptem");
   if (ioctl(f, I_PUSH, "ldterm"))