- // Well , Let's Do The Same as JNI Stoppin' Process
- if ( simix_global->current_process->iwannadie )
- {
- if( ctx_ruby->process )
- {
- //if the Ruby Process still Alive ,let's Schedule it
- if ( rb_process_isAlive( ctx_ruby->process ) )
- {
- current = (smx_ctx_ruby_t)simix_global->current_process->context;
- rb_process_schedule(current->process);
- process = ctx_ruby->process;
- // interupt/kill The Ruby Process
- rb_process_kill_up(process);
+ if ( simix_global->current_process->iwannadie ) {
+ if( ctx_ruby->process ) {
+
+ //if the Ruby Process still Alive ,let's Schedule it
+ if ( rb_process_isAlive( ctx_ruby->process ) ) {
+
+ current = (smx_ctx_ruby_t)simix_global->current_process->context;
+ rb_process_schedule(current->process);
+ process = ctx_ruby->process;
+ // interupt/kill The Ruby Process
+ rb_process_kill_up(process);
+ }