allenhoum / google-glog

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

fix InitGoogleLogging()->ShutdownGoogleLogging(), can not InitGoogleLogging() again #142

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. google::InitGoogleLogging("A");
2. google::ShutdownGoogleLogging();
3. google::InitGoogleLogging("B");

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

Becase g_program_invocation_short_name is not set to NULL in 
ShutdownGoogleLoggingUtilities()

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

Please provide any additional information below.

I want to make a different log filename in the child processes which is not 
execl。

Original issue reported on code.google.com by eyjian@gmail.com on 24 Dec 2012 at 9:47

Attachments:

GoogleCodeExporter commented 8 years ago
in my test, it run ok after g_program_invocation_short_name=NULL; was added in 
ShutdownGoogleLoggingUtilities();

Original comment by eyjian@gmail.com on 25 Dec 2012 at 2:25

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:46