ignore signals is default ecore action
authorenglebass <englebass@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 4 Dec 2010 13:58:52 +0000 (13:58 +0000)
committerenglebass <englebass@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 4 Dec 2010 13:58:52 +0000 (13:58 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/efreet@55259 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/efreet_icon_cache_create.c

index 31d563c..167c74e 100644 (file)
@@ -329,25 +329,6 @@ cache_lock_file(void)
     return lockfd;
 }
 
-static void
-term_handler(int sig __UNUSED__, siginfo_t * info __UNUSED__, void *data __UNUSED__)
-{
-}
-
-/* prevent early death */
-static void
-catch_sigterm(void)
-{
-    struct sigaction act;
-
-    act.sa_sigaction = term_handler;
-    act.sa_flags = SA_RESTART | SA_SIGINFO;
-    sigemptyset(&act.sa_mask);
-
-    if (sigaction(SIGTERM, &act, NULL) < 0)
-        perror("sigaction"); /* It's bad if we can't deal with SIGTERM, but not dramatic */
-}
-
 int
 main(int argc, char **argv)
 {
@@ -399,8 +380,6 @@ main(int argc, char **argv)
     snprintf(file, sizeof(file), "%s/.efreet", efreet_home_dir_get());
     if (!ecore_file_mkpath(file)) return -1;
 
-    catch_sigterm();
-
     /* lock process, so that we only run one copy of this program */
     lockfd = cache_lock_file();
     if (lockfd == -1) return -1;