Skip to content
Snippets Groups Projects
Commit 60efffa4 authored by Daniel P. Berrangé's avatar Daniel P. Berrangé
Browse files

monitor: simplify functions for getting a dup'd fdset entry


Currently code has to call monitor_fdset_get_fd, then dup
the return fd, and then add the duplicate FD back into the
fdset. This dance is overly verbose for the caller and
introduces extra failure modes which can be avoided by
folding all the logic into monitor_fdset_dup_fd_add and
removing monitor_fdset_get_fd entirely.

Signed-off-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
parent de39a045
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment