Helper method that checks the return value of a syscall passed through 'syscall_ret_val'. If it indicates an error, it writes an error message to stderr along with the error string fetched via errno and calls exit().
| 301 | // 'syscall_ret_val'. If it indicates an error, it writes an error message to stderr along |
| 302 | // with the error string fetched via errno and calls exit(). |
| 303 | void AbortIfError(const int syscall_ret_val, const string& msg) { |
| 304 | if (syscall_ret_val == 0) return; |
| 305 | cerr << Substitute("$0 Error: $1", msg, GetStrErrMsg()); |
| 306 | exit(1); |
| 307 | } |
| 308 | |
| 309 | // Blocks the IMPALA_SHUTDOWN_SIGNAL signal. Should be called by the process before |
| 310 | // spawning any other threads to make sure it gets blocked in all threads and will only be |
no test coverage detected