]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
log: use on exit manager to flush logs on exit
authorNoah Watkins <noahwatkins@gmail.com>
Sat, 4 Jan 2014 20:18:25 +0000 (12:18 -0800)
committerNoah Watkins <noahwatkins@gmail.com>
Sat, 4 Jan 2014 20:54:03 +0000 (12:54 -0800)
commit7aa980528c1c59d91303cc75ca264c17e309c60b
treef97510f3297ea038657dc496fbabb41ad556f994
parent2181d25f7a07803227fc7ad0713ecf19b0507342
log: use on exit manager to flush logs on exit

on_exit is not portable, and atexit doesn't allow parameters to be
passed to callbacks.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
src/log/Log.cc