summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_event_engine.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-08-24 17:43:32 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-08-24 17:43:32 +0300
commitb84aa64dcbfb92d31cef10f2f45025a67f2418e4 (patch)
treebd7509540538801bdde233b24c0a130fbd6d757a /src/nxt_event_engine.c
parent8b4b52ae3b3c9400b3d7040a591203a0c1b74ec3 (diff)
downloadunit-b84aa64dcbfb92d31cef10f2f45025a67f2418e4.tar.gz
unit-b84aa64dcbfb92d31cef10f2f45025a67f2418e4.tar.bz2
Removed configure option --no-threads.
Diffstat (limited to 'src/nxt_event_engine.c')
-rw-r--r--src/nxt_event_engine.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/nxt_event_engine.c b/src/nxt_event_engine.c
index 2ec7df1e..bdb0a011 100644
--- a/src/nxt_event_engine.c
+++ b/src/nxt_event_engine.c
@@ -124,14 +124,6 @@ nxt_event_engine_create(nxt_task_t *task,
nxt_queue_init(&engine->listen_connections);
nxt_queue_init(&engine->idle_connections);
-#if !(NXT_THREADS)
-
- if (interface->signal_support) {
- thread->time.signal = -1;
- }
-
-#endif
-
return engine;
timers_fail:
@@ -160,16 +152,6 @@ nxt_event_engine_post_init(nxt_event_engine_t *engine)
return engine->event.enable_post(engine, nxt_event_engine_post_handler);
}
-#if !(NXT_THREADS)
-
- /* Only signals may are posted in single-threaded mode. */
-
- if (engine->event->signal_support) {
- return NXT_OK;
- }
-
-#endif
-
if (nxt_event_engine_signal_pipe_create(engine) != NXT_OK) {
return NXT_ERROR;
}
@@ -426,13 +408,11 @@ nxt_event_engine_change(nxt_event_engine_t *engine,
return nxt_event_engine_signals_start(engine);
}
-#if (NXT_THREADS)
/*
* Reset the PID flag to start the signal thread if
* some future event facility will not support signals.
*/
engine->signals->process = 0;
-#endif
}
return NXT_OK;