shadowsocks / libancillary

sharing eventfd's across unrelated processes with libancillary

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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






About

sharing eventfd's across unrelated processes with libancillary

License:Other


Languages

Language:C 86.6%Language:Makefile 13.4%