From 86a9366721a7736f9be28871b303d350bda1bd2c Mon Sep 17 00:00:00 2001
From: Ruben <ruben@rubenkerkhof.com>
Date: Sun, 17 Oct 2010 17:16:49 +0200
Subject: [PATCH 06/14] 06_fix-IOError.diff from Debian
---
ajaxterm.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ajaxterm.py b/ajaxterm.py
index 63b0444..fe1fc6c 100755
--- a/ajaxterm.py
+++ b/ajaxterm.py
@@ -419,7 +419,7 @@ class Multiplex:
else:
fcntl.fcntl(fd, fcntl.F_SETFL, os.O_NONBLOCK)
# python bug http://python.org/sf/1112949 on amd64
- fcntl.ioctl(fd, struct.unpack('i',struct.pack('I',termios.TIOCSWINSZ))[0], struct.pack("HHHH",h,w,0,0))
+ fcntl.ioctl(fd, termios.TIOCSWINSZ, struct.pack("HHHH",h,w,0,0))
self.proc[fd]={'pid':pid,'term':Terminal(w,h),'buf':'','time':time.time()}
return fd
def die(self):
--
1.7.3.1