Issue 111711 - jvmfwk: let javaldx call java with closed stdin
Summary: jvmfwk: let javaldx call java with closed stdin
Alias: None
Product: udk
Classification: Code
Component: code (show other issues)
Version: DEV300m77
Hardware: All All
: P3 Trivial (vote)
Target Milestone: 4.x
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2010-05-19 14:39 UTC by Stephan Bergmann
Modified: 2013-01-29 21:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description Stephan Bergmann 2010-05-19 14:39:49 UTC
Quoting from a Sun-Hamburg internal problem report:  "That Linux machine
unfortunately mounts /usr/dist (which, I assume, is mainly aimed at Solaris, not
Linux).  If you happen to have /usr/dist/exe in PATH, starting OOo on that
machine will hang: javaldx searches through PATH for Java installations, finds
/usr/dist/exe/java, which executes
/usr/dist/share/cam,v1.8.3/softdist/exe/.cam,v1.8.3_wrapper, which in turn executes

  /bin/grep $cmdname $DIST_HOME/exe/prep

after setting



  cmdname=`basename $0`

which sets cmdname to the empty string on that machine, as it has no
/bin/basename, so the grep line is effectively

  /bin/grep /usr/dist/exe/prep

which hangs waiting for input on stdin."

This problem could be worked around in the OOo code base by letting getJavaProps
in jvmfwk/plugins/sunmajor/pluginlib/util.cxx immediately close stdin of the
spawned java process.
Comment 1 joachim.lingner 2010-06-11 13:21:23 UTC