When an exception is thrown during the process input is provided, BLD200310160100
authormentlicher@netbeans.org
Wed, 15 Oct 2003 16:14:07 +0000
changeset 35703771971ac5d5
parent 3569 d0561404fbcb
child 3571 af0779696b2a
When an exception is thrown during the process input is provided,
silently consume the exception.
We can not reliably detect whether it's a broken pipe or anything else,
we can not cleanly detect whether the process is still running or not.
This is an additional "fix" to issue #36583.
vcscore/src/org/netbeans/modules/vcscore/cmdline/exec/ExternalCommand.java
     1.1 --- a/vcscore/src/org/netbeans/modules/vcscore/cmdline/exec/ExternalCommand.java	Wed Oct 15 15:13:20 2003 +0000
     1.2 +++ b/vcscore/src/org/netbeans/modules/vcscore/cmdline/exec/ExternalCommand.java	Wed Oct 15 16:14:07 2003 +0000
     1.3 @@ -608,7 +608,11 @@
     1.4                      out.write(input);
     1.5                  }
     1.6              } catch (IOException ioex) {
     1.7 -                ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, ioex);
     1.8 +                // Something bad has happened => stop
     1.9 +                stop = true;
    1.10 +                // Might be a Brokem pipe here. Do not notify anyone, we can not
    1.11 +                // cleanly test whether the process is still running or not anyway.
    1.12 +                // ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, ioex);
    1.13              }
    1.14          }
    1.15