diff options
author | Max Romanov <max.romanov@nginx.com> | 2019-07-17 16:57:43 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2019-07-17 16:57:43 +0300 |
commit | dcf46a63eb43297180b5284fab0acca405a6a1c4 (patch) | |
tree | e1b1d76a5f2a14d4fb8df2c933bef5796b2b07af /src/nxt_application.c | |
parent | aab235c4dcda9aa9a629512a413b46f6ccffbd0f (diff) | |
download | unit-dcf46a63eb43297180b5284fab0acca405a6a1c4.tar.gz unit-dcf46a63eb43297180b5284fab0acca405a6a1c4.tar.bz2 |
Exiting application process in case of pre_init stage error.
Diffstat (limited to 'src/nxt_application.c')
-rw-r--r-- | src/nxt_application.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nxt_application.c b/src/nxt_application.c index f63b90fb..468bc627 100644 --- a/src/nxt_application.c +++ b/src/nxt_application.c @@ -333,10 +333,7 @@ nxt_app_start(nxt_task_t *task, void *data) ret = nxt_app->pre_init(task, data); if (nxt_slow_path(ret != NXT_OK)) { - nxt_debug(task, "application pre_init failed"); - - } else { - nxt_debug(task, "application pre_init done"); + return ret; } } |