JDK-8224180 : Improve IOException message text on failed sub process spawns
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Priority: P4
  • Status: New
  • Resolution: Unresolved
  • Submitted: 2019-05-20
  • Updated: 2023-10-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
When we spawn sub processes, a lot of things can go wrong. We already report an error number back to the caller which is the errno of the failing system API. Often, but not always, this will be the errno of either a failed fork() or a failed exec(). However, other things may also go wrong, eg:

- failing to enter the designated current directory
- failing to close file descriptors before exec
- in posix_spawn mode, failing to spawn the jspawnhelper (see JDK8223777).

So it would be nice to have context information error number as well.