Bug 4080 - return exec ("stty " + args + " < /dev/tty").trim ();
Summary: return exec ("stty " + args + " < /dev/tty").trim ();
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks: 2234
  Show dependency treegraph
 
Reported: 2007-02-20 01:35 UTC by Andrew Cagney
Modified: 2007-02-22 15:59 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cagney 2007-02-20 01:35:36 UTC
The CLI, when run from TestRunner corrupts the user's terminal because of the above.

The question really is: how com /dev/tty is still pointing at the user's
terminal, and not the pty terminal.
Comment 1 Andrew Cagney 2007-02-22 15:51:10 UTC
Index: frysk-imports/frysk/sys/ChangeLog
2007-02-22  Andrew Cagney  <cagney@redhat.com>

        * PseudoTerminal.java (RedirectStdio.reopen): Make native.
        * cni/PseudoTerminal.cxx (reopen): Implement; handle controlling
        terminal guff.
        * TestPseudoTerminal.java (testDevTty): Add.
Comment 2 Andrew Cagney 2007-02-22 15:59:27 UTC
Fixes committed, fhpd code correctly sets terminal to stty. (but how it does it
is still wrong).