このページを編集する際は、編集に関する方針に従ってください。
void shmem_exit(int code) { while (--on_shmem_exit_index >= 0)
(*on_shmem_exit_list[on_shmem_exit_index].function) (code, on_shmem_exit_list[on_shmem_exit_index].arg);
on_shmem_exit_index = 0;
}
/* ------------------ * Run all of the on_shmem_exit routines --- but don't actually exit. * This is used by the postmaster to re-initialize shared memory and * semaphores after a backend dies horribly. * ------------------ */
void shmem_exit(int code) { elog(DEBUG3, "shmem_exit(%d)", code);
/* * call all the registered callbacks. * * As with proc_exit(), we remove each callback from the list before * calling it, to avoid infinite loop in case of error. */ while (--on_shmem_exit_index >= 0) (*on_shmem_exit_list[on_shmem_exit_index].function) (code, on_shmem_exit_list[on_shmem_exit_index].arg);
on_shmem_exit_index = 0; }
更新日 | 更新者 | 更新内容 |