From: Marcus Granado Date: Tue, 12 Oct 2010 11:13:54 +0000 (+0100) Subject: CA-45104: ignore renice errors X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0d3f4b4226fb467c21142c15c2ccecf5f6cf9708;p=xcp%2Fxen-api-libs.git CA-45104: ignore renice errors This patch works around a race-condition bug in forkhelpers where the pid might not be valid anymore before forkhelpers.waitpid is called, in case the related process is very short-lived. Signed-off-by: Marcus Granado --- diff --git a/stdext/gzip.ml b/stdext/gzip.ml index 625d367..1c01731 100644 --- a/stdext/gzip.ml +++ b/stdext/gzip.ml @@ -73,7 +73,7 @@ let go (mode: zcat_mode) (input: input_type) fd f = close close_now; finally (fun () -> - lower_priority pid; (* lowest priority to gzip *) + (try lower_priority pid with _->()); (* lowest priority to gzip *) f close_later ) (fun () ->