Root/jfbterm/patches/002-main.patch

1--- a/main.c 2010-06-20 12:41:23.797920527 +0400
2+++ b/main.c 2010-06-20 22:08:46.443043724 +0400
3@@ -185,6 +185,7 @@
4     p->gConfFile = FILE_JFBTERM_CONF;
5     p->gConfEncoding = NULL;
6 
7+ signal(SIGCHLD, sigchld);
8     atexit(tapp_final_at_exit);
9 }
10 
11@@ -193,10 +194,12 @@
12         struct vt_stat vts;
13         int cfd;
14         int vfd;
15- int vtNum;
16+ int vtNum = 0;
17         int child;
18         char vtty[128];
19- int mode;
20+ int mode = 0;
21+
22+ memset(&vts, 0, sizeof(struct vt_stat));
23 
24         cfd = util_privilege_open("/dev/console", O_WRONLY);
25         if (cfd < 0 &&
26

Archive Download this file



interactive