Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jan 1998 10:15:40 -0800 (PST)
From:      Simon Shapiro <shimon@simon-shapiro.org>
To:        freebsd-current@FreeBSD.ORG
Message-ID:  <XFMail.980129101540.shimon@simon-shapiro.org>

next in thread | raw e-mail | index | archive | help
I am on shaky ground here, so be kind to me:

I am trying to get a very new PostgreSQL snapshot to work.
One of the things it does is create a UNIX Socket in /tmp.
It uses a template to create the ``filename'':

#define UNIXSOCK_PATH(sun,port) \
        (sprintf((sun).sun_path, "/tmp/.s.PGSQL.%d", (port)) + \
                sizeof ((sun).sun_family))

This seems to work OK (I traced it in the RDBMS code), up to the bind
syscall.  The port is 5432, and the socket gets created as:

srwx------  1 pgsql  bin  0 Jan 27 16:18 /tmp/.s.PGSQL.543

The bind(2) call is:


----------


Sincerely Yours, 

Simon Shapiro
Shimon@Simon-Shapiro.ORG                      Voice:   503.799.2313



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.980129101540.shimon>