MCPcopy Create free account
hub / github.com/acl-dev/acl / service_pre_jail

Method service_pre_jail

lib_acl_cpp/src/master/master_aio.cpp:183–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181//////////////////////////////////////////////////////////////////////////
182
183void master_aio::service_pre_jail(void* ctx)
184{
185 master_aio* ma = (master_aio *) ctx;
186 acl_assert(ma != NULL);
187
188#ifndef ACL_WINDOWS
189 if (ma->daemon_mode_) {
190 acl_assert(ma->handle_ == NULL);
191
192 ACL_EVENT* eventp = acl_aio_server_event();
193 ma->set_event(eventp);
194
195 ACL_AIO *aio = acl_aio_server_handle();
196 acl_assert(aio);
197 ma->handle_ = NEW aio_handle(aio);
198 }
199#endif
200
201 ma->proc_pre_jail();
202}
203
204void master_aio::service_init(void* ctx)
205{

Callers

nothing calls this directly

Calls 5

acl_aio_server_eventFunction · 0.85
acl_aio_server_handleFunction · 0.85
set_eventMethod · 0.80
aio_handleClass · 0.50
proc_pre_jailMethod · 0.45

Tested by

no test coverage detected