diff options
author | Jin Yoon <jinny.yoon@samsung.com> | 2012-08-24 18:30:23 +0900 |
---|---|---|
committer | Jin Yoon <jinny.yoon@samsung.com> | 2012-08-24 18:30:23 +0900 |
commit | c665161426c3b3611fb8c1d986958db2390dec56 (patch) | |
tree | a586603cd02992fc06b08a1ebe90e4d1fe1469ed | |
parent | 7595f39f90002c04c0a1bc70cfbaa409308775b2 (diff) | |
download | menu-daemon-c665161426c3b3611fb8c1d986958db2390dec56.tar.gz menu-daemon-c665161426c3b3611fb8c1d986958db2390dec56.tar.bz2 menu-daemon-c665161426c3b3611fb8c1d986958db2390dec56.zip |
don't launch home-screen when an app is dead.
Change-Id: I1c55b3c7ffcd45ba0b211d11f759d354d8c343be
-rw-r--r-- | debian/changelog | 9 | ||||
-rw-r--r-- | packaging/menu-daemon.spec | 2 | ||||
-rw-r--r-- | src/menu_daemon.c | 5 |
3 files changed, 15 insertions, 1 deletions
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 <jinny.yoon@samsung.com> 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; |