Process mProcess = 
    Runtime.getRuntime().exec(new String[] {<Command>, <arg0>[, arg1-n]}); 
  ...
  try {
    mProcess.waitFor();
  } catch (Throwable ex) {
  }
  mProcess.destroy();

> -----Urspr�ngliche Nachricht-----
> Von: Christoph Kukulies [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 25. April 2001 09:07
> An: [EMAIL PROTECTED]
> Betreff: Re: Reaped pid = 24793, status = 0
> 
> 
> On Tue, Apr 24, 2001 at 12:54:56PM -0400, Boyce, David wrote:
> > A guess: you're letting the object reference go out of 
> scope without doing a
> > waitFor() or similar. When it then gets garbage collected 
> the JVM tells you
> > what became of your abandoned child.
> 
> So should I do a WaitFor(p) (the process object to terminate?)
> 

Reply via email to