summaryrefslogtreecommitdiff
path: root/jfbterm/patches/002-main.patch
diff options
context:
space:
mode:
authorDavid Kühling <dvdkhlng@gmx.de>2011-01-02 15:19:00 +0100
committerDavid Kühling <dvdkhlng@gmx.de>2011-01-02 15:19:00 +0100
commit9aaeb4623d3ff5746e665bc17914eefd292b7dcd (patch)
tree370db60ffdc2ef840b7d1124d5a392f93bba3c9d /jfbterm/patches/002-main.patch
downloadqipackages-fork-9aaeb4623d3ff5746e665bc17914eefd292b7dcd.tar.gz
New OpenWrt package for GNU Octave. Experimental/probably still broken.grafted
Work in progress. Committing it as compilation seems to take forever. Not sure whether I can finish this within a few days.
Diffstat (limited to 'jfbterm/patches/002-main.patch')
-rw-r--r--jfbterm/patches/002-main.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/jfbterm/patches/002-main.patch b/jfbterm/patches/002-main.patch
new file mode 100644
index 0000000..9ba3152
--- /dev/null
+++ b/jfbterm/patches/002-main.patch
@@ -0,0 +1,25 @@
+--- a/main.c 2010-06-20 12:41:23.797920527 +0400
++++ b/main.c 2010-06-20 22:08:46.443043724 +0400
+@@ -185,6 +185,7 @@
+ p->gConfFile = FILE_JFBTERM_CONF;
+ p->gConfEncoding = NULL;
+
++ signal(SIGCHLD, sigchld);
+ atexit(tapp_final_at_exit);
+ }
+
+@@ -193,10 +194,12 @@
+ struct vt_stat vts;
+ int cfd;
+ int vfd;
+- int vtNum;
++ int vtNum = 0;
+ int child;
+ char vtty[128];
+- int mode;
++ int mode = 0;
++
++ memset(&vts, 0, sizeof(struct vt_stat));
+
+ cfd = util_privilege_open("/dev/console", O_WRONLY);
+ if (cfd < 0 &&