Return value of PathNameOpenFile() - Mailing list pgsql-hackers

From Antonin Houska
Subject Return value of PathNameOpenFile()
Date
Msg-id 5470.1662449168@antos.home
Whole thread Raw
Responses Re: Return value of PathNameOpenFile()
List 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



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Different compression methods for FPI
Next
From: "kuroda.hayato@fujitsu.com"
Date:
Subject: RE: test_decoding assertion failure for the loss of top-sub transaction relationship