static void on_read(h2o_socket_t *sock, const char *err) { if (err != NULL) { fprintf(stderr, "pipe error\n"); abort(); } h2o_buffer_consume(&sock->input, sock->input->size); queue_cb(sock->data); }
static void on_read(h2o_socket_t *sock, int status) { if (status != 0) { fprintf(stderr, "pipe error\n"); abort(); } h2o_buffer_consume(&sock->input, sock->input->size); queue_cb(sock->data); }