Store HomeScreen process in PID file, not launch_app PID. 30/3530/1
authorOssama Othman <ossama.othman@intel.com>
Tue, 14 May 2013 22:32:25 +0000 (15:32 -0700)
committerOssama Othman <ossama.othman@intel.com>
Tue, 14 May 2013 22:32:25 +0000 (15:32 -0700)
Change-Id: Id44085cd758e715f265488b780452310e9e1f30e
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
settings/ico_weston

index 7b02d2a..6d67eac 100755 (executable)
@@ -94,8 +94,8 @@ do_start()
        #       $DAEMON_ARGS \
        #       || return 2
        $DAEMON $DAEMON_ARGS &
-       homescreen_pid=$!
        /bin/sleep 0.2
+       homescreen_pid=`pidof HomeScreen`
 
        if [ $homescreen_pid = 0 ]; then
            return 2