summaryrefslogtreecommitdiff
path: root/util/log.h
diff options
context:
space:
mode:
authorAlberto Lerner <alerner@10gen.com>2010-08-16 16:30:16 -0400
committerAlberto Lerner <alerner@10gen.com>2010-08-16 16:30:16 -0400
commitb1e95d9bee1b14993d56564648c5d54ed1507d58 (patch)
treed361b3bbd6158ea3383ad17234a51751163d9f63 /util/log.h
parent454c04e43e37b4d02cde479f0b7393e34a475c09 (diff)
downloadmongo-b1e95d9bee1b14993d56564648c5d54ed1507d58.tar.gz
SERVER-1593 Expose log file descriptor (needed in new segv handler).
Diffstat (limited to 'util/log.h')
-rw-r--r--util/log.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/log.h b/util/log.h
index 1f11c81cff5..2ad10e83da3 100644
--- a/util/log.h
+++ b/util/log.h
@@ -169,6 +169,11 @@ namespace mongo {
return 1717;
}
+ static int getLogDesc() {
+ if (logfile != NULL)
+ return fileno( logfile );
+ }
+
inline void flush(Tee *t = 0);
inline Nullstream& setLogLevel(LogLevel l){