Apache Mesos
Classes | Macros
exit.hpp File Reference
#include <stdlib.h>
#include <ostream>
#include <glog/logging.h>
#include <glog/raw_logging.h>
#include <stout/attributes.hpp>

Go to the source code of this file.

Classes

struct  __Exit
 

Macros

#define EXIT(status)   __Exit(__FILE__, __LINE__, status).stream()
 
#define SAFE_EXIT(status, fmt, ...)
 

Macro Definition Documentation

#define EXIT (   status)    __Exit(__FILE__, __LINE__, status).stream()
#define SAFE_EXIT (   status,
  fmt,
  ... 
)
Value:
do { \
if (status) { \
RAW_LOG(ERROR, "EXIT with status %d: " fmt, status, ##__VA_ARGS__); \
} else { \
RAW_LOG(INFO, "EXIT with status %d: " fmt, status, ##__VA_ARGS__); \
} \
::_exit(status); \
} while (0)
Result< ProcessStatus > status(pid_t pid)
Definition: proc.hpp:166