From: Saleem Abdulrasool Date: Wed, 24 Jan 2007 18:20:01 +0000 (+0000) Subject: add patch from solar to kill gconfd only if active X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=16e9b945f69bf8aa31df30c9dcd86b4ca1024a77;p=gentoo.git add patch from solar to kill gconfd only if active --- diff --git a/eclass/gnome2-utils.eclass b/eclass/gnome2-utils.eclass index ce4a17f41d1d..70171ac8541b 100644 --- a/eclass/gnome2-utils.eclass +++ b/eclass/gnome2-utils.eclass @@ -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 }