aboutsummaryrefslogtreecommitdiffstats
path: root/example/hello_ll_uds.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/hello_ll_uds.c')
-rw-r--r--example/hello_ll_uds.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/example/hello_ll_uds.c b/example/hello_ll_uds.c
index f291fed..a566155 100644
--- a/example/hello_ll_uds.c
+++ b/example/hello_ll_uds.c
@@ -77,6 +77,14 @@ static void hello_ll_getattr(fuse_req_t req, fuse_ino_t ino,
fuse_reply_attr(req, &stbuf, 1.0);
}
+static void hello_ll_init(void *userdata, struct fuse_conn_info *conn)
+{
+ (void)userdata;
+
+ /* Disable the receiving and processing of FUSE_INTERRUPT requests */
+ conn->no_interrupt = 1;
+}
+
static void hello_ll_lookup(fuse_req_t req, fuse_ino_t parent, const char *name)
{
struct fuse_entry_param e;
@@ -164,6 +172,7 @@ static void hello_ll_read(fuse_req_t req, fuse_ino_t ino, size_t size,
}
static const struct fuse_lowlevel_ops hello_ll_oper = {
+ .init = hello_ll_init,
.lookup = hello_ll_lookup,
.getattr = hello_ll_getattr,
.readdir = hello_ll_readdir,