Skip to content

Commit

Permalink
Make ignore spawn errors when the command is terminating.
Browse files Browse the repository at this point in the history
  • Loading branch information
keita committed Dec 2, 2013
1 parent 431e04e commit b2b47e3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/pione/command/pione-client.rb
Expand Up @@ -352,7 +352,11 @@ def execute_tuple_space_provider
end
@tuple_space_provider = spawner.child_front
rescue SpawnError => e
abort(e.message)
if termination?
Log::Debug.system(e.message)
else
abort(e.message)
end
end
end
@spawner_threads.add(thread)
Expand All @@ -372,7 +376,11 @@ def execute_task_worker
begin
Command::PioneTaskWorker.spawn(Global.features, @tuple_space.uuid)
rescue SpawnError => e
abort(e.message)
if termination?
Log::Debug.system(e.message)
else
abort(e.message)
end
end
end
end
Expand Down

0 comments on commit b2b47e3

Please sign in to comment.