out.close();
} catch (IOException e) {
terminate();
throw new ActivationException(
"unable to create activation group", e);
}
try {
long now = System.currentTimeMillis();
long stop = now + execTimeout;
do {
wait(stop - now);
if (group != null) {
return group;
}
now = System.currentTimeMillis();
} while (status == CREATING && now < stop);
} catch (InterruptedException e) {
}
terminate();
throw new ActivationException(
(removed ?
"activation group unregistered" :
"timeout creating child process"));
} finally {
if (acquired) {