Commit 3e595be5 by Tom Tromey Committed by Tom Tromey

* java/lang/natPosixProcess.cc (reap): Ignore unknown children.

From-SVN: r109383
parent 758cf3f2
2006-01-05 Tom Tromey <tromey@redhat.com>
* java/lang/natPosixProcess.cc (reap): Ignore unknown children.
2006-01-04 Krister Walfridsson <cato@df.lth.se>
* posix-threads.cc (_Jv_InitThreads): #ifdef PTHREAD_STACK_MIN
......
// natPosixProcess.cc - Native side of POSIX process code.
/* Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2005 Free Software Foundation
/* Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2005, 2006 Free Software Foundation
This file is part of libgcj.
......@@ -170,6 +170,8 @@ jboolean java::lang::ConcreteProcess$ProcessManager::reap ()
// Look up the process in our pid map.
ConcreteProcess * process = removeProcessFromMap ((jlong) pid);
// Note that if process==NULL, then we have an unknown child.
// This is not common, but can happen, and isn't an error.
if (process)
{
JvSynchronize sync (process);
......@@ -178,11 +180,6 @@ jboolean java::lang::ConcreteProcess$ProcessManager::reap ()
process->processTerminationCleanup();
process->notifyAll ();
}
else
{
// Unknown child. How did this happen?
fprintf (stderr, "Reaped unknown child pid = %ld\n", (long) pid);
}
}
error:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment