From 40341a0eec50588f574199a3ee213dbb97b576e5 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 15 May 2015 15:04:25 +0200 Subject: fix nowait for polling + add nonblocking example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- doc/examples/nonblocking/cleanup.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 doc/examples/nonblocking/cleanup.c (limited to 'doc/examples/nonblocking/cleanup.c') diff --git a/doc/examples/nonblocking/cleanup.c b/doc/examples/nonblocking/cleanup.c new file mode 100644 index 0000000..00f07bc --- /dev/null +++ b/doc/examples/nonblocking/cleanup.c @@ -0,0 +1,8 @@ +#include +#include + +int main() +{ + return bus_unlink("/tmp/example-bus") && (perror("cleanup"), 1); +} + -- cgit v1.2.3-70-g09d2