From a58f1382a473284d4f8991d4e3eba00272147cca Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 2 Oct 2008 12:43:55 +0000 Subject: (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!!! --- NEWS | 2 ++ mdkapplet | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/NEWS b/NEWS index 87fede6b..f332103b 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,6 @@ - mdkapplet + o prevent SIGCHILD handler's waitpid to interfere with urpmi waiting + for curl exit code, which broke downloads o workarounding issue with downloading files as user Version 2.46 - 2 October 2008 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); -- cgit v1.2.1