From ade4c80d8486a4a3e3cd62bb7383d0b4f0a06695 Mon Sep 17 00:00:00 2001
From: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
Date: Thu, 19 Sep 2013 16:39:52 -0400
Subject: [PATCH] [#30360] Fix gnome build by checking if sflphoned process is
 running

Before killing it
---
 hudson-sflphone-script.sh | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/hudson-sflphone-script.sh b/hudson-sflphone-script.sh
index 0090a8d8b7..44037eb373 100755
--- a/hudson-sflphone-script.sh
+++ b/hudson-sflphone-script.sh
@@ -128,8 +128,14 @@ function build_daemon {
 
 function build_gnome {
     pushd daemon
-    killall sflphoned
-    make distclean
+    # Check if program is running
+    if [ "$(pidof sflphoned)"]
+    then
+      killall sflphoned
+    else
+      echo "sflphoned not running"
+    fi
+    #make distclean
 
     # Compile pjproject first
     pushd libs
-- 
GitLab