-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7781/
-----------------------------------------------------------
(Updated Nov. 6, 2012, 4:09 a.m.)
Review request for mesos, Benjamin Hindman and Vinod Kone.
Changes
-------
Done glog style now, thanks for the C++ trickery help ben!
EXIT(0) << "Foo " << 42;
Summary (updated)
-----------------
Added an EXIT function to stout.
Description (updated)
-------
This adds a consistent way for us to exit without alarming the user with a
stack trace. E.g.
EXIT(1) << "Cgroups cannot be enabled because you run an old kernel";
Part 2, will refactor usage of:
std::cerr << "Cgroups can't be enabled." << std::endl;
abort();
to become:
EXIT(1) << "Cgroups can't be enabled.";
Part 3, will kill the old files (if all the usages can be switched):
stout/fatal.hpp
libprocess/src/fatal.hpp
libprocess/src/fatal.cpp
Diffs (updated)
-----
third_party/libprocess/Makefile.am f32c184ca8cc8852b6c90f3c85a8f99e10ed781b
third_party/libprocess/include/stout/exit.hpp PRE-CREATION
Diff: https://reviews.apache.org/r/7781/diff/
Testing
-------
CentOS: make check
Thanks,
Ben Mahler