このページを編集する際は、編集に関する方針に従ってください。

概要

postgresql-8.1.4/src/backend/port/ipc_test.c(バイナリipc_test)

postgresql-8.1.4/src/backend/storage/ipc/ipc.c

引数

実装

postgresql-8.1.4/src/backend/port/ipc_test.c

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;
}

postgresql-8.1.4/src/backend/storage/ipc/ipc.c

/* ------------------
* 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;
}

呼出元

備考

履歴

コメント



トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS