Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Killall can now be called from an agent
[simgrid.git] / src / msg / m_process.c
index 63a43d1..c80cc6b 100644 (file)
@@ -155,9 +155,13 @@ void MSG_process_kill(m_process_t process)
        surf_workstation_resource->common_public->
          action_change_state(p_simdata->waiting_task->simdata->comm,SURF_ACTION_FAILED);
       else
-       fprintf(stderr,"UNKNOWN STATUS. Please report this bug.\n");
+       CRITICAL0("UNKNOWN STATUS. Please report this bug.");
     } else { /* Must be trying to put a task somewhere */
-      fprintf(stderr,"UNKNOWN STATUS. Please report this bug.\n");
+      if(process==MSG_process_self()) {
+       return;
+      } else {
+       CRITICAL0("UNKNOWN STATUS. Please report this bug.");
+      }
     }
   }
 
@@ -482,15 +486,3 @@ int __MSG_process_isBlocked(m_process_t process)
 
   return (process->simdata->blocked);
 }
-
-
-const char* xbt_procname(void) {
-  char *res = NULL;
-  m_process_t process = MSG_process_self();
-  if ((process != NULL) && (process->simdata))
-    res = (char *)MSG_process_get_name(process);
-  if (res) 
-    return (const char*)res;
-  else
-    return "";
-}