chaolou / google-glog

Automatically exported from code.google.com/p/google-glog
Other
0 stars 0 forks source link

Calling ShutdownGoogleLogging() after InitGoogleLogging() does not work #83

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Call InitGoogleLogging()
2. Call ShutdownGoogleLogging()
3. Call InitGoogleLogging() again

What is the expected output? What do you see instead?

The expected behavior is that the above sequence should work. However, the glog 
library asserts upon seeing the above sequence saying that "You called 
InitGoogleLogging() twice".

The reason I'm calling the above sequence is to support process forks. In a 
forked child, I'd like to re-initialize logging so that the child writes to a 
different log file.

What version of the product are you using? On what operating system?

0.3.1. Ubuntu 10.10.

Please provide any additional information below.

Original issue reported on code.google.com by aron.sus...@nutanix.com on 22 Feb 2011 at 6:32

GoogleCodeExporter commented 8 years ago
http://code.google.com/p/google-glog/source/detail?r=121

Original comment by shinichi...@gmail.com on 10 Jan 2013 at 7:47