]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - sched.h
add some debugging to fd.c
[paraslash.git] / sched.h
diff --git a/sched.h b/sched.h
index 3de5e1cc9ef89f39ed02588d55270c918d097476..0363f0d1f4f79b89bc30078e600db4fc3b66898c 100644 (file)
--- a/sched.h
+++ b/sched.h
@@ -12,7 +12,7 @@ struct task {
        int ret;
        void (*pre_select)(struct sched *s, struct task *t);
        void (*post_select)(struct sched *s, struct task *t);
-       void (*error_handler)(struct task *t);
+       void (*event_handler)(struct task *t);
        struct list_head pre_select_node;
        struct list_head post_select_node;
        char status[MAXLINE];
@@ -21,11 +21,11 @@ struct task {
 enum task_flags {
        PRE_ADD_TAIL = 1,
        POST_ADD_TAIL = 2,
-       PRE_EOF_IS_ERROR = 4,
-       POST_EOF_IS_ERROR = 8,
 };
 
 void *register_task(struct task *t);
 void unregister_task(struct task *t);
 int sched(struct sched *s);
 void init_sched(void);
+char *get_task_list(void);
+int kill_task(char *id);