diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2014-03-19 14:03:13 -0700 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2014-03-20 09:23:16 +1000 |
commit | 44fe1b8ea284df6bbaef67e246016d104665b2fe (patch) | |
tree | 18181e3f6d14b434b7f9c5f13ed53ab0a77f3f5b /include | |
parent | 62d584d63190c6c8cef5fd49d87b1cb29358a434 (diff) |
os: Add a mechanism to prevent creating any listen sockets
A socket-activated server will receive its listening sockets from the
parent process and should not create its own sockets. This patch
introduces a NoListen flag that can be set by a DDX to prevent
the server from creating the sockets. When NoListen is enabled, we
also disable the server lock checking, since the parent process is
responsible for checking the lock before picking the display name and
creating the sockets.
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/opaque.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/opaque.h b/include/opaque.h index 73d40c345..7ec1d850f 100644 --- a/include/opaque.h +++ b/include/opaque.h @@ -74,5 +74,6 @@ extern _X_EXPORT Bool whiteRoot; extern _X_EXPORT Bool bgNoneRoot; extern _X_EXPORT Bool CoreDump; +extern _X_EXPORT Bool NoListenAll; #endif /* OPAQUE_H */ |