X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/57394ca160458c1e38f48313dbcb1146d2e0013c..aefec11f74b58bd4853ad136ed81d3988f26906a:/src/msg/m_process.c diff --git a/src/msg/m_process.c b/src/msg/m_process.c index 63a43d1f1d..c80cc6b7f8 100644 --- a/src/msg/m_process.c +++ b/src/msg/m_process.c @@ -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 ""; -}