22 fprintf(stderr,
"Process exited with status %" PRId64 ", signal %d\n",
exit_status, term_signal);
28 buf->len = suggested_size;
52 size_t path_size = 500;
83 child_stdio[2].
data.
fd = 2;
85 worker->options.stdio = child_stdio;
86 worker->options.stdio_count = 3;
93 fprintf(stderr,
"Started worker %d\n",
worker->req.pid);
static mcore_handle handle
RzBinInfo * info(RzBinFile *bf)
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec req
int main(int argc, const char **argv)
void * malloc(size_t size)
void * calloc(size_t number, size_t size)
static const char struct stat static buf struct stat static buf static vhangup int status
uv_process_options_t options
union uv_stdio_container_s::@397 data
void on_new_connection(uv_stream_t *server, int status)
void alloc_buffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf)
void close_process_handle(uv_process_t *req, int64_t exit_status, int term_signal)
struct child_worker * workers
static enum exit_status_type exit_status
Exit status to use. This can be changed with set_exit_status().
static void worker(void *arg)
UV_EXTERN int uv_exepath(char *buffer, size_t *size)
UV_EXTERN int uv_cpu_info(uv_cpu_info_t **cpu_infos, int *count)
UV_EXTERN int uv_ip4_addr(const char *ip, int port, struct sockaddr_in *addr)
UV_EXTERN int uv_spawn(uv_loop_t *loop, uv_process_t *handle, const uv_process_options_t *options)
UV_EXTERN uv_buf_t uv_buf_init(char *base, unsigned int len)
UV_EXTERN int uv_listen(uv_stream_t *stream, int backlog, uv_connection_cb cb)
UV_EXTERN void uv_free_cpu_info(uv_cpu_info_t *cpu_infos, int count)
UV_EXTERN int uv_pipe_init(uv_loop_t *, uv_pipe_t *handle, int ipc)
UV_EXTERN int uv_run(uv_loop_t *, uv_run_mode mode)
UV_EXTERN int uv_write2(uv_write_t *req, uv_stream_t *handle, const uv_buf_t bufs[], unsigned int nbufs, uv_stream_t *send_handle, uv_write_cb cb)
UV_EXTERN const char * uv_err_name(int err)
UV_EXTERN int uv_tcp_bind(uv_tcp_t *handle, const struct sockaddr *addr, unsigned int flags)
UV_EXTERN void uv_close(uv_handle_t *handle, uv_close_cb close_cb)
UV_EXTERN int uv_accept(uv_stream_t *server, uv_stream_t *client)
UV_EXTERN int uv_tcp_init(uv_loop_t *, uv_tcp_t *handle)
UV_EXTERN uv_loop_t * uv_default_loop(void)