[Title] fix canceling exception
authorjiil.hyoun <jiil.hyoun@samsung.com>
Thu, 3 Jan 2013 02:14:45 +0000 (11:14 +0900)
committerjiil.hyoun <jiil.hyoun@samsung.com>
Thu, 3 Jan 2013 02:14:45 +0000 (11:14 +0900)
[Type] Bugfix
[Module] Toolchain /
[Priority] Minor
[Jira#]
[Redmine#] 7859
[Problem]
[Cause]
[Solution]
[TestCase]

Change-Id: I958b83f6673fc2e415aeba5c04cbbfcdcd602250

src/build_server/CommonJob.rb

index 00af6c4ce7c8593036742078c0d104dbb815ea7a..5a624df4b7ffdf62edf0bd85fce979801e5898b3 100644 (file)
@@ -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