#include <string>
#include "glog/logging.h"
+#ifdef HAVE_LIB_GFLAGS
+#include <gflags/gflags.h>
+using namespace gflags;
+#endif
+
using namespace GOOGLE_NAMESPACE;
void* DieInThread(void*) {
}
void WriteToStdout(const char* data, int size) {
- write(STDOUT_FILENO, data, size);
+ if (write(STDOUT_FILENO, data, size) < 0) {
+ // Ignore errors.
+ }
}
int main(int argc, char **argv) {