rktio: repairs for various configurations
This commit is contained in:
parent
35d47f89f6
commit
d34fcc31db
|
@ -205,7 +205,7 @@ void rktio_release_lockf(rktio_t *rktio, int fd)
|
|||
|
||||
fd2 = pr->car;
|
||||
pid = pr->cdr;
|
||||
rktio_hash_remove(rktio->locked_fd_process_map, fd);
|
||||
rktio_hash_remove(rktio->locked_fd_process_map, fd, 0);
|
||||
free(pr);
|
||||
|
||||
rktio_reliably_close(fd2); /* makes the fork()ed process exit */
|
||||
|
|
|
@ -150,7 +150,7 @@ int rktio_ltps_close(rktio_t *rktio, rktio_ltps_t *lt)
|
|||
}
|
||||
free(lt);
|
||||
#else
|
||||
rktio_poll_set_close(rktio, lt->fd_set);
|
||||
rktio_poll_set_forget(rktio, lt->fd_set);
|
||||
#endif
|
||||
|
||||
return 1;
|
||||
|
@ -500,7 +500,7 @@ int rktio_ltps_poll(rktio_t *rktio, rktio_ltps_t *lt)
|
|||
int key;
|
||||
int sr, hit = 0;
|
||||
|
||||
if (rktio_hash_is_empty(lt->handle_map))
|
||||
if (rktio_hash_is_empty(lt->fd_handles))
|
||||
return 0;
|
||||
|
||||
rktio_clean_fd_set(lt->fd_set);
|
||||
|
@ -565,7 +565,7 @@ int rktio_ltps_poll(rktio_t *rktio, rktio_ltps_t *lt)
|
|||
RKTIO_FD_ZERO(set1);
|
||||
RKTIO_FD_ZERO(set2);
|
||||
|
||||
if (rktio_hash_is_empty(lt->handle_map))
|
||||
if (rktio_hash_is_empty(lt->fd_handles))
|
||||
return 0;
|
||||
|
||||
rktio_merge_fd_sets(fds, lt->fd_set);
|
||||
|
|
Loading…
Reference in New Issue
Block a user