https://github.com/shadowsocks/libancillary
sharing eventfd's across unrelated processes with libancillary
https://github.com/shadowsocks/libancillary
Last synced: 3 months ago
JSON representation
sharing eventfd's across unrelated processes with libancillary
- Host: GitHub
- URL: https://github.com/shadowsocks/libancillary
- Owner: shadowsocks
- License: other
- Fork: true (mhaberler/libancillary)
- Created: 2015-11-06T15:20:25.000Z (about 10 years ago)
- Default Branch: shadowsocks-android
- Last Pushed: 2024-11-02T08:03:31.000Z (about 1 year ago)
- Last Synced: 2024-12-08T01:01:36.599Z (about 1 year ago)
- Language: C
- Size: 22.5 KB
- Stars: 24
- Watchers: 8
- Forks: 58
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: COPYING
Awesome Lists containing this project
README
This example shows how eventfd(2) file descriptors can be shared
over Unix sockets by processes which have no common ancestor.
This problem appears frequently if one needs a poll(2) compatible
notification mechanism; for instance when using queues in shared memory,
to signal the reader that data is available.
Usage:
make
run evserver in one window
run evclient in another window
This code uses the libancil library: http://www.normalesup.org/~george/comp/libancillary/
Michael Haberler 1/2014