diff options
author | Hemant Kumar <gethemant@gmail.com> | 2013-09-24 00:27:11 +0530 |
---|---|---|
committer | Hemant Kumar <gethemant@gmail.com> | 2013-09-24 00:33:12 +0530 |
commit | b6f0a56bc932845b71b2c8dba0fd9a40b21a8d7e (patch) | |
tree | 9dc45461ded6a5b7813c63e30fc94218a50bcec4 | |
parent | 2697b4638d3d85040d2a7d7f9c5af591fa4ae4bf (diff) | |
download | bundler-fix-worker-cleanup-error.tar.gz |
Stop threads before killing the workerfix-worker-cleanup-error
It is pretty good idea to kill the threads before killing the worker
because threads are still trying to read from pipe that could be prematurely
closed when workers get killed.
-rw-r--r-- | lib/bundler/parallel_workers/worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/parallel_workers/worker.rb b/lib/bundler/parallel_workers/worker.rb index 975b6a3342..6e22eb4ce7 100644 --- a/lib/bundler/parallel_workers/worker.rb +++ b/lib/bundler/parallel_workers/worker.rb @@ -39,8 +39,8 @@ module Bundler # Stop the forked workers and started threads def stop - stop_workers stop_threads + stop_workers end private |