summaryrefslogtreecommitdiff
path: root/src/core/socket.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-01 14:28:13 +0200
committerLennart Poettering <lennart@poettering.net>2015-10-01 14:28:13 +0200
commit55301ec028937eab4722c9fd586fd77ffdbc50dd (patch)
treec329e5846069c3f80c8facfc17d604878081fabe /src/core/socket.h
parent7e9d36e06b85d87eb2c3aed507fe3aa1574c7880 (diff)
core: add new setting Writable= to ListenSpecial= socket units
Writable= is a new boolean setting. If ture, then ListenSpecial= will open the specified path in O_RDWR mode, rather than just O_RDONLY. This is useful for implementing services like rfkill, where /dev/rfkill is more useful when opened in write mode, if we want to not only save but also restore its state.
Diffstat (limited to 'src/core/socket.h')
-rw-r--r--src/core/socket.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/socket.h b/src/core/socket.h
index aee0d34a27..d20dc8d81a 100644
--- a/src/core/socket.h
+++ b/src/core/socket.h
@@ -118,6 +118,7 @@ struct Socket {
bool accept;
bool remove_on_stop;
+ bool writable;
/* Socket options */
bool keep_alive;