Bug 4055 - hpd calls Runtime.getRuntime ().exec(cmd) aka system()
Summary: hpd calls Runtime.getRuntime ().exec(cmd) aka system()
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Tim Moore
Depends on:
Blocks: 2246
  Show dependency treegraph
Reported: 2007-02-15 19:07 UTC by Andrew Cagney
Modified: 2007-02-22 16:06 UTC (History)
0 users

See Also:
Last reconfirmed:


Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cagney 2007-02-15 19:07:33 UTC
The jline library creates a child process using Runtime.getRuntime().exec(cmd).
 This use of fork and SIGCHLD clashes with frys's control over the same components.
Comment 1 Andrew Cagney 2007-02-22 16:02:53 UTC
The fix here is to create a PtyTerminal that extend jline.Terminal.  That code
then uses frysk.sys.termios to set/clear the terminal settings.

This needs to be common code, perhaphs in frysk-core/frysk.util, so that fhpd,
and the corresponding GUI instance of fhpd can share it.

There is an existing PtyTerminal in frysk.vtecli, that can be eliminated.