This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Ajaxterm/0006-06_fix-IOError.diff-from-Debian.patch
Ruben f1477239c3 - Apply patches from Debian (fixes #635238, #544033, enables UTF-8)
- Cleanup init script
- Add a sysconfig file
- Relocate pidfile to /var/run/ajaxterm/ajaxterm.pid
- Add a README.Fedora
- Add an example config for Apache
2010-10-17 19:11:01 +02:00

25 lines
836 B
Diff

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