Return value of PathNameOpenFile()

From: Antonin Houska <ah(at)cybertec(dot)at>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Return value of PathNameOpenFile()
Date: 2022-09-06 07:26:08
Message-ID: 5470.1662449168@antos.home
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I've noticed that some callers of PathNameOpenFile()
(e.g. bbsink_server_begin_archive()) consider the call failed even if the
function returned zero, while other ones do check whether the file descriptor
is strictly negative. Since the file descriptor is actually returned by the
open() system call, I assume that zero is a valid result, isn't it?

--
Antonin Houska
Web: https://www.cybertec-postgresql.com

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message kuroda.hayato@fujitsu.com 2022-09-06 07:47:21 RE: test_decoding assertion failure for the loss of top-sub transaction relationship
Previous Message Michael Paquier 2022-09-06 06:47:05 Re: Different compression methods for FPI