Use proc_exit() in WalRcvWaitForStartPosition - Mailing list pgsql-hackers

From Chao Li
Subject Use proc_exit() in WalRcvWaitForStartPosition
Date
Msg-id 74381238-4E8A-4621-B794-57025DCCE0BA@gmail.com
Whole thread Raw
Responses Re: Use proc_exit() in WalRcvWaitForStartPosition
List pgsql-hackers
Hi,

While working on another patch, I happened to notice that WalRcvWaitForStartPosition() calls raw exit(1). I think this
shoulduse 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

pgsql-hackers by date:

Previous
From: Imran Zaheer
Date:
Subject: Re: [WIP] Pipelined Recovery
Next
From: Jim Jones
Date:
Subject: Re: Add errdetail() with PID and UID about source of termination signal