Skip to content

Commit

Permalink
close streams before killing process
Browse files Browse the repository at this point in the history
  • Loading branch information
yrudman committed Apr 20, 2020
1 parent 6e67f1f commit ddec1e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/miq_cockpit_ws_worker/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ def stop_cockpit_ws

def stop_cockpit_ws_process
return unless @pid
Process.kill("TERM", @pid)
@stdout&.close
@stderr&.close
Process.kill("TERM", @pid)
wait_on_cockpit_ws
end

Expand Down

0 comments on commit ddec1e3

Please sign in to comment.