lib/fluent/plugin/in_dstat.rb in fluent-plugin-dstat-0.2.2 vs lib/fluent/plugin/in_dstat.rb in fluent-plugin-dstat-0.2.3
- old
+ new
@@ -61,9 +61,10 @@
$log.error_backtrace
end
end
def restart
+ Process.detach(@pid)
Process.kill(:TERM, @pid)
@dw.detach
@tw.detach
@line_number = 0
touch_or_truncate(@tmp_file)