From a74927d9f0d26b00cb2ab54bca40c17e1eef9008 Mon Sep 17 00:00:00 2001 From: "jiil.hyoun" Date: Thu, 3 Jan 2013 11:14:45 +0900 Subject: [PATCH] [Title] fix canceling exception [Type] Bugfix [Module] Toolchain / [Priority] Minor [Jira#] [Redmine#] 7859 [Problem] [Cause] [Solution] [TestCase] Change-Id: I958b83f6673fc2e415aeba5c04cbbfcdcd602250 --- src/build_server/CommonJob.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/build_server/CommonJob.rb b/src/build_server/CommonJob.rb index 00af6c4..5a624df 100644 --- a/src/build_server/CommonJob.rb +++ b/src/build_server/CommonJob.rb @@ -186,7 +186,12 @@ class CommonJob @sub_pid = pid # wait for finish - pid, status = Process.waitpid2(pid) + begin + pid, status = Process.waitpid2(pid) + rescue Errno::ECHILD + # pid is not exist + # do notting + end @sub_pid = 0 # return -- 2.34.1