author | waspe <waspe> | 2004-02-22 12:57:58 (UTC) |
---|---|---|
committer | waspe <waspe> | 2004-02-22 12:57:58 (UTC) |
commit | 5bc4dbd932fcfa64773b6e17fe57c665bdcd50b8 (patch) (unidiff) | |
tree | b97f5281b807b4218f437150a4e9082694e7a642 /core/apps/embeddedkonsole/MyPty.cpp | |
parent | 908f9c9f0c68d1c3e5a620a69bbf0d05684e2ab3 (diff) | |
download | opie-5bc4dbd932fcfa64773b6e17fe57c665bdcd50b8.zip opie-5bc4dbd932fcfa64773b6e17fe57c665bdcd50b8.tar.gz opie-5bc4dbd932fcfa64773b6e17fe57c665bdcd50b8.tar.bz2 |
merged changes form qkonsole back into opie-embeddedkonsole (most likely not bugfree !)
Diffstat (limited to 'core/apps/embeddedkonsole/MyPty.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/apps/embeddedkonsole/MyPty.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/apps/embeddedkonsole/MyPty.cpp b/core/apps/embeddedkonsole/MyPty.cpp index 7e820ad..e7d8274 100644 --- a/core/apps/embeddedkonsole/MyPty.cpp +++ b/core/apps/embeddedkonsole/MyPty.cpp | |||
@@ -81,2 +81,3 @@ | |||
81 | 81 | ||
82 | #undef HAVE_OPENPTY | ||
82 | #ifdef HAVE_OPENPTY | 83 | #ifdef HAVE_OPENPTY |
@@ -148,2 +149,8 @@ int MyPty::run(const char* cmd, QStrList &, const char*, int) | |||
148 | for (int sig = 1; sig < NSIG; sig++) signal(sig,SIG_DFL); | 149 | for (int sig = 1; sig < NSIG; sig++) signal(sig,SIG_DFL); |
150 | |||
151 | // attempt to keep apm driver from killing us on power on/off | ||
152 | signal(SIGSTOP, SIG_IGN); | ||
153 | signal(SIGCONT, SIG_IGN); | ||
154 | signal(SIGTSTP, SIG_IGN); | ||
155 | |||
149 | int ttyfd = open(ttynam, O_RDWR); | 156 | int ttyfd = open(ttynam, O_RDWR); |
@@ -165,3 +172,2 @@ int MyPty::run(const char* cmd, QStrList &, const char*, int) | |||
165 | tcsetattr( STDIN_FILENO, TCSANOW, &ttmode ); | 172 | tcsetattr( STDIN_FILENO, TCSANOW, &ttmode ); |
166 | if(strlen(getenv("TERM"))<=0) | ||
167 | setenv("TERM","vt100",1); | 173 | setenv("TERM","vt100",1); |