readLine of stdout blocks for a child process
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
I launch a Win32 process from a java application. The Win32 process in turn
launches subprocess(s).
I then do my_proc_stdin.readLine in Java to collect input from the child
process. The problem is that this call blocks even when the child process has
exited. As far as I can tell it unblocks only when subprocess(s) lauched by
the child process have also exited.
The sub processes are launched as detached processes using CreateProcess -
what can I do to get the Java readLine call to return when the child process
is no longer there?
Thanks!
--
Bob Gaffaney
.
Relevant Pages
- Re: Remote desktop
... I use MindTerm (it's free, written in Java, so runs on just about anything) ... I launch vnc or vino ... If your Ubuntu has the java applets for the VNC server, ... MindTerm, then open the tunnels, then open http://localhost:5801/ and voila, ... (Ubuntu) - Cannot launch simple applications (notepad, java) using Apache and PERL(CGI)
... web-page running on Apache. ... a java file. ... I have a simple perl script to run these. ... unable to get them to launch from an IE browser running on apache: ... (comp.lang.perl.misc) - Cannot launch simple applications (notepad, java) using Apache and PERL(CGI)
... web-page running on Apache. ... a java file. ... I have a simple perl script to run these. ... unable to get them to launch from an IE browser running on apache: ... (comp.lang.perl) - Re: Problem with fork inside a thread and system()
... In my program I need to launch the "pppd" from a thread, so, I create ... a new process withforkand then in the child process I launch with ... father stuff..... ... Ok I Have tryed with execv: ... (comp.os.linux.development.apps) - Re: Problem with fork inside a thread and system()
... In my program I need to launch the "pppd" from a thread, so, I create ... a new process withforkand then in the child process I launch with ... father stuff..... ... Ok I Have tryed with execv: ... (comp.os.linux.development.apps) |
|