.handler = w->execute, .context = wn));
strcpy(wn->task.status, name);
free(name);
- wn->task.post_select = w->post_select;
wn->task.pre_select = w->pre_select;
+ if (w->new_post_select) {
+ wn->task.new_post_select = w->new_post_select;
+ wn->task.post_select = NULL;
+ } else {
+ wn->task.new_post_select = NULL;
+ wn->task.post_select = w->post_select;
+ }
register_task(s, &wn->task);
}