]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
rotatelogs: Remove last constant length error buffer.
authorBen Reser <breser@apache.org>
Wed, 23 Oct 2013 05:14:45 +0000 (05:14 +0000)
committerBen Reser <breser@apache.org>
Wed, 23 Oct 2013 05:14:45 +0000 (05:14 +0000)
commitefa63fe5f8eaf139fce33f075dca2f0243d15751
tree30bea3fe7cd48156acce630b1b6d68c0ef01a8c4
parent5079dca06a41aa49d2bf3f9be661743ba5b51670
rotatelogs: Remove last constant length error buffer.

* support/rotatelogs.c
  (ERRMSGSZ): Remove.
  (rotate_status): Remove errbuff member.
  (truncate_and_write_error): Accept the error message as an argument.
  (doRotate): Shift the pool destruction slightly later and use it to generate
    the error message to pass truncate_and_write_error().
  (main): In case of write errors create a pool to generate the error message,
    since the other pools available may never been freed.  Adjust to pass
    message directly to truncate_and_write_error().

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1534914 13f79535-47bb-0310-9956-ffa450edef68
support/rotatelogs.c