void sighup_run(void) { sighup_flag = 0; time(¤t_time); log_error_time(); fputs("caught SIGHUP, restarting\n", stderr); /* Philosophy change for 0.92: don't close and attempt reopen of logfiles, * since usual permission structure prevents such reopening. */ FD_ZERO(&block_read_fdset); FD_ZERO(&block_write_fdset); /* clear_common_env(); NEVER DO THIS */ dump_mime(); dump_passwd(); dump_alias(); free_requests(); log_error_time(); fputs("re-reading configuration files\n", stderr); read_config_files(); log_error_time(); fputs("successful restart\n", stderr); }
void sigterm_stage2_run() /* lame duck mode */ { log_error_time(); fprintf(stderr, "exiting Boa normally (uptime %d seconds)\n", (int) (current_time - start_time)); chdir(tempdir); clear_common_env(); dump_mime(); dump_passwd(); dump_alias(); free_requests(); exit(0); }
void sigterm_stage2_run() /* lame duck mode */ { log_error_time(); fprintf(stderr, "exiting Boa normally (uptime %d seconds)\n", (int) (current_time - start_time)); chdir(tempdir); clear_common_env(); dump_mime(); dump_passwd(); dump_alias(); free_requests(); #if defined(TCSUPPORT_WEBSERVER_SSL) boa_sslUninit(); #endif exit(0); }
void sigterm_stage2_run() /* lame duck mode */ { int ret=0; log_error_time(); fprintf(stderr, "exiting Boa normally (uptime %d seconds)\n", (int) (current_time - start_time)); ret= chdir(tempdir); if(ret<0) { fprintf(stderr,"chdir faile %s:%d\n",__FILE__,__LINE__); } clear_common_env(); dump_mime(); dump_passwd(); dump_alias(); free_requests(); exit(0); }
void sigterm_stage2_run(void) { /* lame duck mode */ log_error_time(); fprintf(stderr, "exiting Boa normally (uptime %d seconds)\n", (int) (current_time - start_time)); if (chdir(tempdir) == -1) perror ("chdir (tempdir) failed"); clear_common_env(); dump_mime(); dump_passwd(); dump_alias(); free_requests(); range_pool_empty(); free(server_root); free(server_name); server_root = NULL; exit(EXIT_SUCCESS); }