Use proc_exit() in WalRcvWaitForStartPosition

From: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Use proc_exit() in WalRcvWaitForStartPosition
Date: 2026-04-08 09:08:36
Message-ID: 74381238-4E8A-4621-B794-57025DCCE0BA@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

While working on another patch, I happened to notice that WalRcvWaitForStartPosition() calls raw exit(1). I think this should use proc_exit(1) instead, so that the normal cleanup machinery is not bypassed.

This tiny patch just replaces exit(1) with proc_exit(1) in WalRcvWaitForStartPosition().

Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/

Attachment Content-Type Size
v1-0001-Use-proc_exit-in-WalRcvWaitForStartPosition.patch application/octet-stream 860 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim Jones 2026-04-08 09:13:40 Re: Add errdetail() with PID and UID about source of termination signal
Previous Message Imran Zaheer 2026-04-08 08:46:04 Re: [WIP] Pipelined Recovery