Lines Matching refs:handler
32 static void xfrd_handle_ipc_read(struct event* handler, xfrd_state_type* xfrd);
107 netio_handler_type *handler, in parent_handle_xfrd_command() argument
113 (struct ipc_handler_conn_data *) handler->user_data; in parent_handle_xfrd_command()
118 if ((len = read(handler->fd, &mode, sizeof(mode))) == -1) { in parent_handle_xfrd_command()
127 close(handler->fd); in parent_handle_xfrd_command()
128 handler->fd = -1; in parent_handle_xfrd_command()
219 nsd->children[i].handler->fd = -1; in child_is_done()
309 netio_handler_type *handler, in parent_handle_child_command() argument
315 (struct main_ipc_handler_data*)handler->user_data; in parent_handle_child_command()
321 send_stat_to_child(data, handler->fd); in parent_handle_child_command()
323 send_quit_to_child(data, handler->fd); in parent_handle_child_command()
325 handler->event_types = NETIO_EVENT_READ; in parent_handle_child_command()
327 handler->event_types = NETIO_EVENT_READ; in parent_handle_child_command()
342 if ((len = read(handler->fd, in parent_handle_child_command()
367 if((len = read(handler->fd, buffer_current(data->packet), in parent_handle_child_command()
386 if((len = read(handler->fd, (char*)&data->acl_num+got_acl, in parent_handle_child_command()
425 if ((len = read(handler->fd, &mode, sizeof(mode))) == -1) { in parent_handle_child_command()
432 child_is_done(data->nsd, handler->fd); in parent_handle_child_command()
475 netio_handler_type *handler, in parent_handle_reload_command() argument
481 struct nsd *nsd = (struct nsd*) handler->user_data; in parent_handle_reload_command()
486 if ((len = read(handler->fd, &mode, sizeof(mode))) == -1) { in parent_handle_reload_command()
493 assert(handler->fd != -1); /* or read() would have failed */ in parent_handle_reload_command()
494 close(handler->fd); in parent_handle_reload_command()
495 handler->fd = -1; in parent_handle_reload_command()
510 nsd->children[i].handler->event_types in parent_handle_reload_command()
649 xfrd_handle_ipc_read(struct event* handler, xfrd_state_type* xfrd) in xfrd_handle_ipc_read() argument
700 if((len = read(handler->ev_fd, &cmd, sizeof(cmd))) == -1) { in xfrd_handle_ipc_read()
727 if(block_read(NULL, handler->ev_fd, &xfrd->reload_pid, in xfrd_handle_ipc_read()