summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-02 12:43:55 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-02 12:43:55 +0000
commita58f1382a473284d4f8991d4e3eba00272147cca (patch)
treedf7ad198ba5919a1ed73aae7e3c0c21e59a0ff13 /mdkapplet
parent99a55b636d4f66de3602f36bcb3b23bc7ab63a89 (diff)
downloadmgaonline-a58f1382a473284d4f8991d4e3eba00272147cca.tar
mgaonline-a58f1382a473284d4f8991d4e3eba00272147cca.tar.gz
mgaonline-a58f1382a473284d4f8991d4e3eba00272147cca.tar.bz2
mgaonline-a58f1382a473284d4f8991d4e3eba00272147cca.tar.xz
mgaonline-a58f1382a473284d4f8991d4e3eba00272147cca.zip
(is_there_a_new_distributions) prevent SIGCHILD handler's waitpid to
interfere with urpmi waiting for curl (which was messing up with urpmi trying to get curl exit code) Kudo pixel!!!
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet5
1 files changed, 5 insertions, 0 deletions
diff --git a/mdkapplet b/mdkapplet
index 02274a17..3ebdaa4b 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -263,6 +263,11 @@ sub is_there_a_new_distributions() {
my @lines = eval {
my $urpm = Rpmdrake::open_db::fast_open_urpmi_db();
+
+ # prevent SIGCHILD handler's waitpid to interfere with urpmi waiting
+ # for curl exit code, which broke downloads:
+ local $SIG{CHLD} = 'DEFAULT';
+
if (member($product_id->{version}, qw(2007.1 2008.0 2008.1))) {
require mdkapplet_urpm;
mdkapplet_urpm::ensure_valid_cachedir($urpm);