From 627645acc074eab7a3694a267bc2a643d8b3e57a Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 5 Feb 2016 15:05:30 +0100 Subject: First steps in make signals more abstract from the underlying mechanism; replace epoll with poll. We now don't assume that a signal equals a single fd (eventfd on Linux). The next step would be to create a version of signal.c that uses a pipe internally, so it can be used on other platforms, like *BSD. This is also the reason epoll was replaced with poll in uplink.c --- src/fuse/connection.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/fuse/connection.h') diff --git a/src/fuse/connection.h b/src/fuse/connection.h index 06db6c4..f01577d 100644 --- a/src/fuse/connection.h +++ b/src/fuse/connection.h @@ -1,6 +1,7 @@ #ifndef _CONNECTION_H_ #define _CONNECTION_H_ +#include "../shared/signal.h" #include #include @@ -11,7 +12,7 @@ typedef struct _dnbd3_async { char* buffer; // Caller-provided buffer to be filled uint64_t offset; uint32_t length; - int signalFd; // Used to signal the caller + dnbd3_signal_t* signal; // Used to signal the caller bool finished; // Will be set to true if the request has been handled bool success; // Will be set to true if the request succeeded } dnbd3_async_t; -- cgit v1.2.3-55-g7522