On Fri, Aug 5, 2011 at 04:00, Debao Shao <Debao.Shao@brion.com> wrote:

1, I put "PetscInitialize" at the beginning of main, and "PetscInitialize" registers a signal handler to capture "SIGTERM";

2, the problem ran in server side will send SIGTERM to kill all of clients after one stage is done.

3, then, unfortunately, the signal "SIGTERM" is caught by the signal handler installed by "PetscInitialize", and caused to abort.

You can remove the order dependence by running with -no_signal_handler or setting your own signal handler with:

http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-dev/docs/manualpages/Sys/PetscPushSignalHandler.html