/** Copied from the task_info struct during task_register(). */
void (*pre_select)(struct sched *s, struct task *t);
/** Copied from the task_info struct during task_register(). */
/** Copied from the task_info struct during task_register(). */
void (*pre_select)(struct sched *s, struct task *t);
/** Copied from the task_info struct during task_register(). */
/** If less than zero, the task was notified by another task. */
int notification;
/** True if task is in error state and exit status has been queried. */
/** If less than zero, the task was notified by another task. */
int notification;
/** True if task is in error state and exit status has been queried. */
if (t->error >= 0)
/* The task list should contain only terminated tasks. */
PARA_WARNING_LOG("shutting down running task %s\n",
if (t->error >= 0)
/* The task list should contain only terminated tasks. */
PARA_WARNING_LOG("shutting down running task %s\n",
- snprintf(t->status, sizeof(t->status) - 1, "%s", info->name);
- t->status[sizeof(t->status) - 1] = '\0';
+ snprintf(t->name, sizeof(t->name) - 1, "%s", info->name);
+ t->name[sizeof(t->name) - 1] = '\0';
char *tmp_msg;
tmp_msg = make_message("%s%p\t%s\t%s\n", msg? msg : "", t,
t->error < 0? (t->dead? "dead" : "zombie") : "running",
char *tmp_msg;
tmp_msg = make_message("%s%p\t%s\t%s\n", msg? msg : "", t,
t->error < 0? (t->dead? "dead" : "zombie") : "running",