Searched refs:main_fd (Results 1 – 2 of 2) sorted by relevance
87 int thread_fd, main_fd; member359 (*self)->main_fd = fd[1]; in sw_discovery_init()391 if (write_command((*self)->main_fd, COMMAND_POLL) < 0) in sw_discovery_init()415 if (write_command(self->main_fd, COMMAND_QUIT) < 0) in stop_thread()452 if (self->main_fd >= 0) in discovery_unref()453 close(self->main_fd); in discovery_unref()496 return self->main_fd; in sw_discovery_socket()509 if (read_command(self->main_fd) != COMMAND_POLL_DONE) in sw_discovery_read_socket()524 if (write_command(self->main_fd, COMMAND_POLL) < 0) in sw_discovery_read_socket()560 p.fd = ((sw_discovery) self)->main_fd; in sw_salt_step()
68 int thread_fd, main_fd; member374 sdref->main_fd = fd[1]; in sdref_new()403 if (write_command(sdref->main_fd, COMMAND_POLL) < 0) in sdref_new()425 ASSERT_SUCCESS(write_command(sdref->main_fd, COMMAND_QUIT)); in sdref_free()439 if (sdref->main_fd >= 0) in sdref_free()440 close(sdref->main_fd); in sdref_free()478 return sdref->main_fd; in DNSServiceRefSockFD()494 if (read_command(sdref->main_fd) != COMMAND_POLL_DONE) in DNSServiceProcessResult()509 if (write_command(sdref->main_fd, COMMAND_POLL) < 0) in DNSServiceProcessResult()