Kouhei Sutou 2018-11-19 11:15:58 +0900 (Mon, 19 Nov 2018) Revision: 01c32860b359bbd05afe21652755cf47bc570272 https://github.com/groonga/grntest/commit/01c32860b359bbd05afe21652755cf47bc570272 Message: Ignore Errno::ECHILD for waitpid Modified files: lib/grntest/test-runner.rb Modified: lib/grntest/test-runner.rb (+5 -1) =================================================================== --- lib/grntest/test-runner.rb 2018-11-19 11:12:42 +0900 (2b987c5) +++ lib/grntest/test-runner.rb 2018-11-19 11:15:58 +0900 (7344b3e) @@ -427,7 +427,11 @@ call chdir("#{context.temporary_directory_path}") total_sleep_time = 0 sleep_time = 0.1 loop do - return true if Process.waitpid(pid, Process::WNOHANG) + begin + return true if Process.waitpid(pid, Process::WNOHANG) + rescue SystemCallError + return true + end sleep(sleep_time) total_sleep_time += sleep_time return false if total_sleep_time > @tester.shutdown_wait_timeout -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20181119/3b0b4d97/attachment-0001.html>