diff options
| author | Heikki Linnakangas | 2025-03-05 21:46:29 +0000 |
|---|---|---|
| committer | Heikki Linnakangas | 2025-03-05 21:52:04 +0000 |
| commit | a98e4dee63ce594ed32d1b004385d6ffa8b57dc5 (patch) | |
| tree | e389fef88e022701907211e3aac83c330ac4c74f /src/backend | |
| parent | 153836b99acb5c432b9e2326dbd75ac239f3c320 (diff) | |
Remove unused ShutdownLatchSupport() function
The only caller was removed in commit 80a8f95b3b. I don't foresee
needing it any time soon, and I'm working on some big changes in this
area, so let's remove it out of the way.
Reviewed-by: Andres Freund <[email protected]>
Discussion: https://www.postgresql.org/message-id/[email protected]
Diffstat (limited to 'src/backend')
| -rw-r--r-- | src/backend/storage/ipc/latch.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/backend/storage/ipc/latch.c b/src/backend/storage/ipc/latch.c index 4572684f224..cd09a10f3d1 100644 --- a/src/backend/storage/ipc/latch.c +++ b/src/backend/storage/ipc/latch.c @@ -360,33 +360,6 @@ InitializeLatchWaitSet(void) Assert(latch_pos == LatchWaitSetLatchPos); } -void -ShutdownLatchSupport(void) -{ -#if defined(WAIT_USE_POLL) - pqsignal(SIGURG, SIG_IGN); -#endif - - if (LatchWaitSet) - { - FreeWaitEventSet(LatchWaitSet); - LatchWaitSet = NULL; - } - -#if defined(WAIT_USE_SELF_PIPE) - close(selfpipe_readfd); - close(selfpipe_writefd); - selfpipe_readfd = -1; - selfpipe_writefd = -1; - selfpipe_owner_pid = InvalidPid; -#endif - -#if defined(WAIT_USE_SIGNALFD) - close(signal_fd); - signal_fd = -1; -#endif -} - /* * Initialize a process-local latch. */ |
