diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2013-06-27 03:41:48 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2013-06-27 03:41:48 +0000 |
commit | e48b0084e19eacc30a2d8a8e274cc284973e0a2c (patch) | |
tree | 4f1f9c467037e08567984dd003687057777ec431 /echld/echld-int.h | |
parent | ffe6d9c4d6fe36d7f2498154cdb12159b6b60aff (diff) |
MS: Pong from the dispatcher!
svn path=/trunk/; revision=50183
Diffstat (limited to 'echld/echld-int.h')
-rw-r--r-- | echld/echld-int.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/echld/echld-int.h b/echld/echld-int.h index e21b69c154..1085301afc 100644 --- a/echld/echld-int.h +++ b/echld/echld-int.h @@ -122,6 +122,8 @@ typedef struct _echld_reader { #define READER_FD_ISSET(R,fdset_p) READER_FD_ISSET(R.fd,&(fdset_p)) #define READER_FD_CLEAR(R,fdset_p) READER_FD_CLEAR(R.fd,&(fdset_p)) +extern void echld_common_set_dbg(int level, FILE* fp); + extern void echld_init_reader(echld_reader_t* r, int fd, size_t initial); extern void echld_reset_reader(echld_reader_t* r, int fd, size_t initial); @@ -193,13 +195,27 @@ extern void echld_dispatcher_start(int* in_pipe_fds, int* out_pipe_fds); extern void dummy_switch(echld_msg_type_t type); extern void echld_unused(void); +/* initial debug levels */ +#define DEBUG_BASE 5 #define DEBUG_CHILD 5 #define DEBUG_DISPATCHER 5 #define DEBUG_PARENT 5 -#define BROKEN_PARENT_PIPE 3333 -#define BROKEN_DUMPCAP_PIPE 4444 -#define BROKEN_READFILE 5555 +/* config stuff */ +#define DISPATCHER_WAIT_INITIAL 999999 /* almost 1s */ + + +/* fatalities */ +#define BROKEN_PARENT_PIPE 123 +#define BROKEN_DUMPCAP_PIPE 124 +#define BROKEN_READFILE 125 +#define DISPATCHER_DEAD 126 +#define UNIMPLEMENTED 127 +#define CANNOT_FORK 128 +#define SHOULD_HAVE_EXITED_BEFORE 129 +#define DISPATCHER_PIPE_FAILED 130 +#define TERMINATED 140 + #endif |