Github user clockfly commented on the pull request:

    https://github.com/apache/storm/pull/305#issuecomment-61632248
  
    dashengju is describling a use scenario that parent process blocks while 
trying to read error stream data from sub-process (parent java space throw an 
exception, which trigger the error handling).
    
    Becasue sub-process is still running, there is no EOF of errorStream, so 
errorStream.read() will blocks.
    
    If in this scenario, we can make sure the child process is dead by called 
child.destroy(), then there will be an EOF signalled to its error Stream, and 
parent process will not block.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to