()
| 312 | let hung = false; |
| 313 | let timer; |
| 314 | const wait = () => { |
| 315 | clearTimeout(timer); |
| 316 | timer = setTimeout(() => { |
| 317 | hung = true; |
| 318 | child.kill('SIGKILL'); |
| 319 | }, CASE_LIMIT_SECONDS * 1000); |
| 320 | }; |
| 321 | wait(); |
| 322 | child.stdout.on('data', (chunk) => { |
| 323 | out += chunk; |