add patch from solar to kill gconfd only if active
authorSaleem Abdulrasool <compnerd@gentoo.org>
Wed, 24 Jan 2007 18:20:01 +0000 (18:20 +0000)
committerSaleem Abdulrasool <compnerd@gentoo.org>
Wed, 24 Jan 2007 18:20:01 +0000 (18:20 +0000)
eclass/gnome2-utils.eclass

index ce4a17f41d1d8efe3227d9062e5bd0d2e983aee2..70171ac8541becb591bc515c5a507f8081732c0c 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2006 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2-utils.eclass,v 1.2 2007/01/01 22:27:01 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2-utils.eclass,v 1.3 2007/01/24 18:20:01 compnerd Exp $
 
 #
 # gnome2-utils.eclass
@@ -52,9 +52,12 @@ gnome2_gconf_install() {
        done
 
        # have gconf reload the new schemas
-       ebegin "Reloading GConf schemas"
-       killall -HUP gconfd-2
-       eend $?
+       pids=$(pidof gconfd-2)
+       if [[ $? == 0 ]] ; then
+               ebegin "Reloading GConf schemas"
+               kill -HUP ${pids}
+               eend $?
+       fi
 }