# File lib/daemons/syslogio.rb, line 117
  def write(text)
    if @sync then
      syswrite(text)
    else
      text.split(/(\n)/).each do |line|
        @buffer = @buffer + line.to_s
        if line == "\n" then
          flush
        end
      end
    end
  end