Bug 4080

Summary: return exec ("stty " + args + " < /dev/tty").trim ();
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 2234    

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).