From c665161426c3b3611fb8c1d986958db2390dec56 Mon Sep 17 00:00:00 2001 From: Jin Yoon Date: Fri, 24 Aug 2012 18:30:23 +0900 Subject: [PATCH] don't launch home-screen when an app is dead. Change-Id: I1c55b3c7ffcd45ba0b211d11f759d354d8c343be --- debian/changelog | 9 +++++++++ packaging/menu-daemon.spec | 2 +- src/menu_daemon.c | 5 +++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 8f62a2f..ca46692 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +menu-daemon (0.2.42) unstable; urgency=low + + * Git: magnolia/apps/home/menu-daemon + * Tag: menu-daemon_0.2.42 + + * don't launch home-screen when an app is dead. + + -- Jin Yoon Fri, 24 Aug 2012 18:17:50 +0900 + menu-daemon (0.2.41) unstable; urgency=low * Git: shared1/pkgs/m/menu-daemon diff --git a/packaging/menu-daemon.spec b/packaging/menu-daemon.spec index 6256649..31b3066 100644 --- a/packaging/menu-daemon.spec +++ b/packaging/menu-daemon.spec @@ -4,7 +4,7 @@ Name: menu-daemon Summary: Menu daemon -Version: 0.2.41 +Version: 0.2.42 Release: 1 Group: TO_BE/FILLED_IN License: Flora Software License diff --git a/src/menu_daemon.c b/src/menu_daemon.c index b2ede4d..12da1d2 100644 --- a/src/menu_daemon.c +++ b/src/menu_daemon.c @@ -222,6 +222,11 @@ static int _dead_cb(int pid, void *data) if (pid < 0) return 0; + if (pid != s_info.pid || s_info.pid <= 0) { + _D("Unknown process, ignore it (pid %d, menu pid %d)", pid, s_info.pid); + return 0; + } + pkgname = _get_selected_pkgname(); if (!pkgname) return 0; -- 2.7.4