Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Unified Diff: base/nss_init.cc

Issue 159836: linux: improve warnings when NSS/PR shutdowns fail (Closed)
Patch Set: retry Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/nss_init.cc
diff --git a/base/nss_init.cc b/base/nss_init.cc
index 15fad89460397d1df89d3aa751da68017bd2b52f..074b19a42bcbc518bd52bfbed1958c285e6bc1e8 100644
--- a/base/nss_init.cc
+++ b/base/nss_init.cc
@@ -131,15 +131,22 @@ class NSSInitSingleton {
SSL_ClearSessionCache();
SECStatus status = NSS_Shutdown();
- if (status != SECSuccess)
- LOG(ERROR) << "NSS_Shutdown failed, leak? See "
- "http://code.google.com/p/chromium/issues/detail?id=4609";
+ if (status != SECSuccess) {
+ // We LOG(INFO) because this failure is relatively harmless
+ // (leaking, but we're shutting down anyway).
+ LOG(INFO) << "NSS_Shutdown failed; see "
+ "http://code.google.com/p/chromium/issues/detail?id=4609";
+ }
PL_ArenaFinish();
PRStatus prstatus = PR_Cleanup();
- if (prstatus != PR_SUCCESS)
- LOG(ERROR) << "PR_Cleanup failed?";
+ if (prstatus != PR_SUCCESS) {
+ // We LOG(ERROR) here because this failure is bad: it indicates
+ // a potential race.
wtc 2009/08/04 17:42:21 Nit: "a potential race" => "NSPR isn't initialized
+ LOG(ERROR) << "PR_Cleanup failed; see "
+ "http://code.google.com/p/chromium/issues/detail?id=18410";
+ }
}
private:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698