]> git.proxmox.com Git - mirror_lxcfs.git/blobdiff - src/bindings.h
lxcfs: preparation for FUSE_INTERRUPT support
[mirror_lxcfs.git] / src / bindings.h
index 8d9d6eb1ccb5eea8bc89380b7056e527c03a9749..e2463bac2643c4bac95b5d17e237fa4cd25469c1 100644 (file)
@@ -78,6 +78,20 @@ enum lxcfs_virt_t {
 #define LXCFS_TYPE_SYS(type) (type >= LXC_TYPE_SYS && type <= LXC_TYPE_SYS_DEVICES_SYSTEM_CPU_ONLINE)
 #define LXCFS_TYPE_OK(type) (type >= LXC_TYPE_CGDIR && type < LXC_TYPE_MAX)
 
+/*
+ * This signal will be used to signal fuse request processing thread that
+ * request was interrupted (FUSE_INTERRUPT came from the kernel).
+ *
+ * It's not imporant which signal num is used, but it should not intersect with
+ * any signals those are already handled and used somewhere.
+ * Since, SIGUSR1 and SIGUSR2 are already utilized by lxcfs, let it be SIGTTOU.
+ *
+ * See also:
+ * ("interrupt support")
+ * https://github.com/libfuse/libfuse/commit/288ed4ebcea335c77793ee3d207c7466d55c4f71
+ */
+#define LXCFS_INTR_SIGNAL SIGTTOU
+
 struct file_info {
        char *controller;
        char *cgroup;