Listen on socket passed by systemd 60/23160/6
authorRafal Krypa <r.krypa@samsung.com>
Wed, 18 Jun 2014 14:25:46 +0000 (16:25 +0200)
committerRafal Krypa <r.krypa@samsung.com>
Mon, 23 Jun 2014 18:01:20 +0000 (20:01 +0200)
This was previously disabled in security-manager code, because it was
coupled with security-server, which already did that.
Uncommenting the listening code now.

Change-Id: I9e7c5a3a5bde2e29fc74b9918af0a36992533a80
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
src/server/main/socket-manager.cpp

index c9f497b..c2eaced 100644 (file)
@@ -335,8 +335,7 @@ void SocketManager::ReadyForWrite(int sock) {
 
 void SocketManager::MainLoop() {
     // remove evironment values passed by systemd
-    // uncomment it after removing old security-server code
-    // sd_listen_fds(1);
+    sd_listen_fds(1);
 
     // Daemon is ready to work.
     sd_notify(0, "READY=1");