summaryrefslogtreecommitdiff
path: root/core
authorerik <erik>2007-04-20 21:21:14 (UTC)
committer erik <erik>2007-04-20 21:21:14 (UTC)
commitd07beba6b9351c6b575235522781e3ce8495e578 (patch) (side-by-side diff)
tree8c5d9cca84d79d7d3016ceb187a1a67a8adba662 /core
parentfb862bdc6c9a6f5b6e7529823eb4b56cc7085a59 (diff)
downloadopie-d07beba6b9351c6b575235522781e3ce8495e578.zip
opie-d07beba6b9351c6b575235522781e3ce8495e578.tar.gz
opie-d07beba6b9351c6b575235522781e3ce8495e578.tar.bz2
additional info to a comment about pty mangling
Diffstat (limited to 'core') (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/embeddedkonsole/MyPty.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/apps/embeddedkonsole/MyPty.cpp b/core/apps/embeddedkonsole/MyPty.cpp
index 4b1ae59..c11889e 100644
--- a/core/apps/embeddedkonsole/MyPty.cpp
+++ b/core/apps/embeddedkonsole/MyPty.cpp
@@ -158,13 +158,13 @@ int MyPty::run(const char* cmd, QStrList &, const char*, int)
// should be done with tty, so close it
close(ttyfd);
static struct termios ttmode;
if ( setsid() < 0 )
perror( "failed to set process group" );
#if defined (TIOCSCTTY)
- // grabbed from APUE by Stevens
+ // grabbed from APUE by Stevens (see section 9.6, should be page 246)
ioctl(STDIN_FILENO, TIOCSCTTY, 0);
#endif
tcgetattr( STDIN_FILENO, &ttmode );
ttmode.c_cc[VINTR] = 3;
ttmode.c_cc[VERASE] = 8;
tcsetattr( STDIN_FILENO, TCSANOW, &ttmode );