12 fprintf(stderr,
"Process exited with status %" PRId64 ", signal %d\n",
exit_status, term_signal);
21 strcpy(
path + (strlen(
path) - strlen(
"cgi")),
"tick");
static static fork const void static count static fd const char const char static newpath const char static path const char path
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)
static const char struct stat static buf struct stat static buf static vhangup int status
uv_stdio_container_t * stdio
union uv_stdio_container_s::@397 data
uv_process_options_t options
void invoke_cgi_script(uv_tcp_t *client)
void on_new_connection(uv_stream_t *server, int status)
void cleanup_handles(uv_process_t *req, int64_t exit_status, int term_signal)
static enum exit_status_type exit_status
Exit status to use. This can be changed with set_exit_status().
UV_EXTERN int uv_exepath(char *buffer, size_t *size)
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 int uv_listen(uv_stream_t *stream, int backlog, uv_connection_cb cb)
UV_EXTERN int uv_run(uv_loop_t *, uv_run_mode mode)
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 const char * uv_strerror(int err)
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)