unixware 7.1x

Lists: Postg롤 토토SQL
From: Olivier PRENANT <ohp(at)pyrenet(dot)fr>
To: pgsql-ports(at)postgresql(dot)org
Subject: unixware 7.1x
Date: 2000-05-03 15:32:03
Message-ID: Pine.UW2.4.21.0005031726000.18979-100000@server.pyrenet.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: Postg롤 토토SQL

Hi all,

On my previous message I said that I couldn't connect on the postmaster
through a unix domain socket.

I traced down the problem tothe accept call. It turns out that in case on
unix domain, accept sets the remote family to AF_UNKNOWN (0) instead of
AF_UNIX (1). This doesn't happen on 7.0.1.

The kludge is straight forward. My question is "what does posix say about
it". I mean is it a UW bug or is it in the specs?

Should we add
if (port->raddr.sa.sa_familly == 0) port->raddr.sa.sa_family=AF_UNIX;
in pqcomm.c in case of unixware ?

Regards,

--
Olivier PRENANT Tel: +33-5-61-50-97-00 (Work)
Quartier d'Harraud Turrou +33-5-61-50-97-01 (Fax)
31190 AUTERIVE +33-6-07-63-80-64 (GSM)
FRANCE Email: ohp(at)pyrenet(dot)fr
------------------------------------------------------------------------------
Make your life a dream, make your dream a reality. (St Exupery)