diff options
| author | Anoop C S <anoopcs@redhat.com> | 2016-08-10 16:32:19 +0530 |
|---|---|---|
| committer | Andreas Schneider <asn@samba.org> | 2016-10-20 10:50:08 +0200 |
| commit | 087f9aea821cceffd3ced15b576106cace8a2c9d (patch) | |
| tree | 6be3cc15b8f6ba45cb3ca87d4d1736b1c189ac3c /socket_wrapper.pc.cmake | |
| parent | f43d3835451a5271c4e5ec22f321a8120b40d1df (diff) | |
| download | socket_wrapper-087f9aea821cceffd3ced15b576106cace8a2c9d.tar.gz socket_wrapper-087f9aea821cceffd3ced15b576106cace8a2c9d.tar.xz socket_wrapper-087f9aea821cceffd3ced15b576106cace8a2c9d.zip | |
swrap: Untangle socket_info_fd from socket_info structure.
This reverses the dependency of socket_info on socket_info_fd:
Instead of maintaining the list of socket_info structures,
and keeping a list of referencing fds (created by dup),
we now maintain the list of fds with pointers to the
corresponding socket_info structures, and count the
references in the socket_info.
This makes the treatment of the lists more obvious,
especially seen in the removing part.
This change is a preparatory step for implementing
fd-passing in socket-wrapper.
Pair-programmed-with: Michael Adam <obnox@samba.org>
Signed-off-by: Anoop C S <anoopcs@redhat.com>
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'socket_wrapper.pc.cmake')
0 files changed, 0 insertions, 0 deletions
