void CNT_Init(void) { srandomdev(); xids = random(); CLI_AddFuncs(DEBUG_CLI, debug_cmds); }
void CNT_Init(void) { srandomdev(); srand48(random()); xids = random(); CLI_AddFuncs(debug_cmds); }
void CLI_Init(void) { Lck_New(&cli_mtx); cli_thread = pthread_self(); cls = CLS_New(cli_cb_before, cli_cb_after, params->cli_buffer); AN(cls); CLI_AddFuncs(master_cmds); }
void PAN_Init(void) { VAS_Fail = pan_ic; pan_vsb = &pan_vsb_storage; AN(heritage.panic_str); AN(heritage.panic_str_len); AN(VSB_new(pan_vsb, heritage.panic_str, heritage.panic_str_len, VSB_FIXEDLEN)); CLI_AddFuncs(debug_cmds); }
void CLI_Init(void) { Lck_New(&cli_mtx, lck_cli); cli_thread = pthread_self(); cls = VCLS_New(cli_cb_before, cli_cb_after, &cache_param->cli_buffer, &cache_param->cli_limit); AN(cls); CLI_AddFuncs(master_cmds); }
void VMOD_Init(void) { CLI_AddFuncs(vcl_cmds); }
void child_main(void) { setbuf(stdout, NULL); setbuf(stderr, NULL); printf("Child starts\n"); cache_param = heritage.param; AZ(pthread_key_create(&req_key, NULL)); AZ(pthread_key_create(&bo_key, NULL)); AZ(pthread_key_create(&name_key, NULL)); THR_SetName("cache-main"); VSM_Init(); /* First, LCK needs it. */ LCK_Init(); /* Second, locking */ Lck_New(&vxid_lock, lck_vxid); CLI_Init(); PAN_Init(); VFP_Init(); VCL_Init(); HTTP_Init(); VBO_Init(); VBP_Init(); VBE_InitCfg(); Pool_Init(); V1P_Init(); EXP_Init(); HSH_Init(heritage.hash); BAN_Init(); VCA_Init(); SMP_Init(); STV_open(); VMOD_Init(); BAN_Compile(); VRND_Seed(); srand48(random()); CLI_AddFuncs(debug_cmds); /* Wait for persistent storage to load if asked to */ if (FEATURE(FEATURE_WAIT_SILO)) SMP_Ready(); CLI_Run(); BAN_Shutdown(); STV_close(); printf("Child dies\n"); }
void VFP_Init(void) { CLI_AddFuncs(debug_cmds); }
void Fetch_Init(void) { CLI_AddFuncs(debug_cmds); }