Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Change the way the flag is handled in smx_ctx_java_stop
authorSamuel Lepetit <samuel.lepetit@inria.fr>
Tue, 12 Jun 2012 12:58:58 +0000 (14:58 +0200)
committerSamuel Lepetit <samuel.lepetit@inria.fr>
Tue, 12 Jun 2012 12:58:58 +0000 (14:58 +0200)
src/smx_context_java.c

index a68ebea..91a3b93 100644 (file)
@@ -138,7 +138,7 @@ void smx_ctx_java_stop(smx_context_t context)
 {
        smx_ctx_java_t ctx_java = (smx_ctx_java_t)context;
   /* I am the current process and I am dying */
-       if (context->iwannadie == -1) {
+       if (context->iwannadie) {
        context->iwannadie = 0;
        JNIEnv *env = get_current_thread_env();
        jxbt_throw_by_name(env, "org/simgrid/msg/ProcessKilledError", bprintf("Process killed :)"));