54 |
hic_stuff cmd; |
hic_stuff cmd; |
55 |
int *command_line = cml; /* this is an int[2] */ |
int *command_line = cml; /* this is an int[2] */ |
56 |
|
|
|
_php_hic_init(); |
|
|
|
|
57 |
FD_ZERO(&read_fdset); |
FD_ZERO(&read_fdset); |
58 |
|
|
|
|
|
59 |
while (1) { |
while (1) { |
60 |
|
|
61 |
time(¤t_time); |
time(¤t_time); |
108 |
|
|
109 |
static int process_command(hic_stuff * cmd) |
static int process_command(hic_stuff * cmd) |
110 |
{ |
{ |
111 |
_php_hic_request( cmd); |
hic_module_st * hst; |
112 |
|
|
113 |
|
hst = find_hic_appr_module( cmd->path_translated, 0); |
114 |
|
if (hst == NULL) { |
115 |
|
log_error_time(); |
116 |
|
fprintf(stderr, "Could not find HIC handler for '%s'\n", cmd->path_translated); |
117 |
|
close( cmd->out_fd); |
118 |
|
return 0; |
119 |
|
} |
120 |
|
|
121 |
|
hst->request( cmd); |
122 |
close( cmd->out_fd); |
close( cmd->out_fd); |
123 |
|
|
124 |
|
/* |
125 |
log_error_time(); |
log_error_time(); |
126 |
fprintf(stderr, "HIC status: %d wrote: %d\n", cmd->status, cmd->bytes_sent); |
fprintf(stderr, "HIC status: %d wrote: %d\n", cmd->status, cmd->bytes_sent); |
127 |
|
*/ |
128 |
|
|
129 |
return 0; |
return 0; |
130 |
} |
} |