simdata->data = data;
simdata->last_errno = MSG_OK;
- int future_simix_process_pid = SIMIX_process_get_maxpid();
+ int future_simix_process_pid = SIMIX_process_get_nextpid();
TRACE_msg_process_create(name, future_simix_process_pid, host);
/* Let's create the process: SIMIX may decide to start it right now,