Redirect stderr to /dev/null for the pkill(1) exec.

That is needed because one may want to install packages while running
on a ramdisk kernel which does not have kvm_getproc2().

discussed with robert@
This commit is contained in:
ajacoutot 2010-11-14 14:16:43 +00:00
parent 4d42899146
commit 4cfb86d9a4
2 changed files with 4 additions and 4 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.46 2010/10/18 21:35:48 sthen Exp $
# $OpenBSD: Makefile,v 1.47 2010/11/14 14:16:43 ajacoutot Exp $
COMMENT-main= configuration database system for GNOME
COMMENT-polkit= PolicyKit integration for GConf2
GNOME_PROJECT= GConf
GNOME_VERSION= 2.32.0
REVISION-main= 0
REVISION-main= 1
PKGNAME-main= gconf2-${GNOME_VERSION}
PKGNAME-polkit= gconf2-polkit-${GNOME_VERSION}

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-gconf_gconftool_c,v 1.10 2009/11/07 08:41:15 ajacoutot Exp $
$OpenBSD: patch-gconf_gconftool_c,v 1.11 2010/11/14 14:16:43 ajacoutot Exp $
https://bugzilla.gnome.org/show_bug.cgi?id=328697
(patch from Fedora)
@ -9,7 +9,7 @@ https://bugzilla.gnome.org/show_bug.cgi?id=328697
++args;
}
+ g_spawn_command_line_sync ("/usr/bin/pkill -TERM -f " GCONF_SERVERDIR "/" GCONFD, NULL, NULL, NULL, NULL);
+ g_spawn_command_line_sync ("/usr/bin/pkill -TERM -f " GCONF_SERVERDIR "/" GCONFD "2>/dev/null", NULL, NULL, NULL, NULL);
+
retval |= do_sync (conf);
return retval;