* java/lang/natPosixProcess.cc (reap): Ignore unknown children.
From-SVN: r109383
This commit is contained in:
parent
758cf3f28a
commit
3e595be57a
|
@ -1,3 +1,7 @@
|
||||||
|
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>
|
2006-01-04 Krister Walfridsson <cato@df.lth.se>
|
||||||
|
|
||||||
* posix-threads.cc (_Jv_InitThreads): #ifdef PTHREAD_STACK_MIN
|
* posix-threads.cc (_Jv_InitThreads): #ifdef PTHREAD_STACK_MIN
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// natPosixProcess.cc - Native side of POSIX process code.
|
// 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.
|
This file is part of libgcj.
|
||||||
|
|
||||||
|
@ -170,6 +170,8 @@ jboolean java::lang::ConcreteProcess$ProcessManager::reap ()
|
||||||
// Look up the process in our pid map.
|
// Look up the process in our pid map.
|
||||||
ConcreteProcess * process = removeProcessFromMap ((jlong) pid);
|
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)
|
if (process)
|
||||||
{
|
{
|
||||||
JvSynchronize sync (process);
|
JvSynchronize sync (process);
|
||||||
|
@ -178,11 +180,6 @@ jboolean java::lang::ConcreteProcess$ProcessManager::reap ()
|
||||||
process->processTerminationCleanup();
|
process->processTerminationCleanup();
|
||||||
process->notifyAll ();
|
process->notifyAll ();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
// Unknown child. How did this happen?
|
|
||||||
fprintf (stderr, "Reaped unknown child pid = %ld\n", (long) pid);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
|
Loading…
Reference in New Issue