Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-patch] Spawner.java patch

> 
> If user click Cancel button in progress dialog, the following sequence of
> events happens:
> - kill application
> - close handle
> - drain pipes
> Actually this sometimes causes hanging of IDE (at least in Windows) in case
> if process is blocked on the pipe reading. Killing of application (at least
> this is correct for make) leaves process to be blocked on reading forever.
> It is better to change the order:
> - close handle
> - kill application
> Handle closing breaks blocked read operation.
> 

Alex, please put a defect on it.


My "brief" experience with windows is reverse.  In the debugger
if I:
- InputStreawm().close
- Process.destroy()

gdb will hang, ... the close() blocks forever.

I had to :

- Process.destroy()
- InputStream().close

Again my dealing with windows is too limited, but
would you mind investigate a little more before applying the patch.

Thanks.




Back to the top