Remove sd related code
authorSung-jae Park <nicesj.park@samsung.com>
Mon, 2 Jan 2012 04:17:22 +0000 (13:17 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Mon, 2 Jan 2012 04:17:22 +0000 (13:17 +0900)
debian/changelog
src/main.c

index f4d898c..3ea72d7 100644 (file)
@@ -1,3 +1,10 @@
+libslp-shortcut (0.0.4) unstable; urgency=low
+
+  * Git: slp/pkgs/s/shortcut
+  * Tag: libslp-shortcut_0.0.4
+
+ -- Sung-jae Park <nicesj.park@samsung.com>  Mon, 02 Jan 2012 13:17:05 +0900
+
 libslp-shortcut (0.0.3) unstable; urgency=low
 
   * Git: slp/pkgs/s/shortcut
index 348ada5..b391dca 100644 (file)
@@ -33,7 +33,6 @@
 
 #include <sys/socket.h>
 #include <sys/ioctl.h>
-#include <sd-daemon.h>
 
 
 
@@ -626,13 +625,8 @@ int init_server(void)
                return -EFAULT;
        }
 
-       if (sd_listen_fds(1) == 1 && sd_is_socket_unix(SD_LISTEN_FDS_START,
-                               SOCK_STREAM, -1, s_info.socket_file, 0) > 0) {
-               s_info.server_fd = SD_LISTEN_FDS_START;
-       } else {
-               unlink(s_info.socket_file);
-               s_info.server_fd = secom_create_server(s_info.socket_file);
-       }
+       unlink(s_info.socket_file);
+       s_info.server_fd = secom_create_server(s_info.socket_file);
 
        if (s_info.server_fd < 0) {
                LOGE("Failed to open a socket (%s)\n", strerror(errno));