We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4389a8e commit 0a9ea55Copy full SHA for 0a9ea55
app/server/ruby/bin/daemon.rb
@@ -412,7 +412,14 @@ def boot
412
@stdin, @stdout_and_err, @wait_thr = Open3.popen2e @cmd, *@args
413
@pid = @wait_thr.pid
414
@io_thr = Thread.new do
415
- @stdout_and_err.each {|line| @log_file << line ; @log_file.flush}
+ @stdout_and_err.each do |line|
416
+ begin
417
+ @log_file << line
418
+ @log_file.flush
419
+ rescue IOError
420
+ # don't attempt to write
421
+ end
422
423
end
424
425
@@ -430,6 +437,7 @@ def wait
430
437
431
438
432
439
def kill
440
+
433
441
if process_running?
434
442
Util.log "Process Booter - killing #{@cmd} with pid #{@pid} and args #{@args.inspect}, wait_thr status: #{@wait_thr}, #{@wait_thr.status}"
435
443
0 commit comments