client: always log to stderr
[paraslash.git] / sched.c
diff --git a/sched.c b/sched.c
index 879ab80..27d71f6 100644 (file)
--- a/sched.c
+++ b/sched.c
@@ -65,17 +65,11 @@ void *register_task(struct task *t)
        PARA_INFO_LOG("registering %s (%p)\n", t->status, t);
        if (t->pre_select) {
                PARA_DEBUG_LOG("pre_select: %p\n", &t->pre_select);
-               if (t->flags & PRE_ADD_TAIL)
-                       list_add_tail(&t->pre_select_node, &pre_select_list);
-               else
-                       list_add(&t->pre_select_node, &pre_select_list);
+               list_add(&t->pre_select_node, &pre_select_list);
        }
        if (t->post_select) {
                PARA_DEBUG_LOG("post_select: %p\n", &t->pre_select);
-               if (t->flags & POST_ADD_TAIL)
-                       list_add_tail(&t->post_select_node, &post_select_list);
-               else
-                       list_add(&t->post_select_node, &post_select_list);
+               list_add(&t->post_select_node, &post_select_list);
        }
        return t;
 }
@@ -112,15 +106,15 @@ char *get_task_list(void)
        char *msg = NULL;
        list_for_each_entry_safe(t, tmp, &pre_select_list, pre_select_node) {
                char *tmp_msg;
-               tmp_msg = make_message("%s%p\t%s\n", msg? msg : "", t, t->status);
+               tmp_msg = make_message("%s%p\tpre\t%s\n", msg? msg : "", t, t->status);
                free(msg);
                msg = tmp_msg;
        }
        list_for_each_entry_safe(t, tmp, &post_select_list, post_select_node) {
                char *tmp_msg;
-               if (t->pre_select)
-                       continue;
-               tmp_msg = make_message("%s%p\t%s\n", msg? msg : "", t, t->status);
+//             if (t->pre_select)
+//                     continue;
+               tmp_msg = make_message("%s%p\tpost\t%s\n", msg? msg : "", t, t->status);
                free(msg);
                msg = tmp_msg;
        }