diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-07-12 20:32:16 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-07-12 20:32:16 +0300 |
commit | b0c1e740cf404f8fed5eed75fddb205ca74314e0 (patch) | |
tree | 08dcefc827c5dfb1570b682ea8d1e9abf17a31dc /src/nxt_log.h | |
parent | c38bcb7d70729434893ae4d5f2f58a78a36d2bd5 (diff) | |
download | unit-b0c1e740cf404f8fed5eed75fddb205ca74314e0.tar.gz unit-b0c1e740cf404f8fed5eed75fddb205ca74314e0.tar.bz2 |
New process port exchange changed. READY message type introduced.
Application process start request DATA message from router to master.
Master notifies router via NEW_PORT message after worker process become ready.
Diffstat (limited to 'src/nxt_log.h')
-rw-r--r-- | src/nxt_log.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nxt_log.h b/src/nxt_log.h index 74260576..504d2ee8 100644 --- a/src/nxt_log.h +++ b/src/nxt_log.h @@ -162,4 +162,17 @@ NXT_EXPORT extern nxt_log_t nxt_main_log; NXT_EXPORT extern nxt_str_t nxt_log_levels[]; +#define nxt_assert(c) \ + do { \ + if (nxt_fast_path(c)) { \ + break; \ + \ + } else { \ + nxt_thread_log_alert("%s:%d assertion failed: %s", \ + __FILE__, __LINE__, #c ); \ + nxt_abort(); \ + } \ + } while (0) + + #endif /* _NXT_LOG_H_INCLUDED_ */ |