From 16e9b945f69bf8aa31df30c9dcd86b4ca1024a77 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 24 Jan 2007 18:20:01 +0000 Subject: [PATCH] add patch from solar to kill gconfd only if active --- eclass/gnome2-utils.eclass | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 } -- 2.26.2