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

Function main_server_exit

lib_fiber/cpp/src/fiber_server.cpp:299–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299static void main_server_exit(ACL_FIBER *fiber, int status)
300{
301#if !defined(_WIN32) && !defined(_WIN64)
302 if (acl_var_fiber_disable_core_onexit) {
303 acl_set_core_limit(0);
304 }
305#endif
306
307 if (__sighup_fiber) {
308 acl_fiber_kill(__sighup_fiber);
309 __sighup_fiber = NULL;
310 }
311
312 acl_msg_info("%s(%d), %s: fiber-%u, service exit now!",
313 __FILE__, __LINE__, __FUNCTION__, acl_fiber_id(fiber));
314
315 /* stop the main thread fiber schedule proccess */
316 acl_fiber_schedule_stop();
317 acl_app_conf_unload();
318 acl_debug_end();
319 __exit_status = status;
320}
321
322static void main_stop_listen()
323{

Callers 3

main_fiber_monitor_usedFunction · 0.70
main_fiber_monitor_idleFunction · 0.70

Calls 7

acl_set_core_limitFunction · 0.85
acl_msg_infoFunction · 0.85
acl_app_conf_unloadFunction · 0.85
acl_debug_endFunction · 0.85
acl_fiber_killFunction · 0.50
acl_fiber_idFunction · 0.50
acl_fiber_schedule_stopFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…