17 #ifndef __STATUS_UTILS_HPP__ 18 #define __STATUS_UTILS_HPP__ 38 message +=
"exited with status ";
42 message +=
"exited with status ";
45 message +=
"terminated with signal ";
47 if (WCOREDUMP(status)) {
48 message +=
" (core dumped)";
50 }
else if (WIFSTOPPED(status)) {
51 message +=
"stopped on signal ";
54 message +=
"wait status ";
61 #endif // __STATUS_UTILS_HPP__ const char * strsignal(int signum)
Definition: windows.hpp:347
Result< ProcessStatus > status(pid_t pid)
Definition: proc.hpp:166
#define WIFSIGNALED(x)
Definition: windows.hpp:376
#define WEXITSTATUS(x)
Definition: windows.hpp:368
#define WIFEXITED(x)
Definition: windows.hpp:362
bool WSUCCEEDED(int status)
Definition: status_utils.hpp:26
std::string WSTRINGIFY(int status)
Definition: status_utils.hpp:32
std::string stringify(int flags)