Use $HOME/tmp or $HOME for the second Unix domain path.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Mon, 12 Sep 2022 04:48:26 +0000 (13:48 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Mon, 12 Sep 2022 04:48:26 +0000 (13:48 +0900)
The socket API does not allow to use too long Unix domain socket paths.

src/test/regression/tests/035.unix_sockets/test.sh

index e25f761dfb0116632b96b0ae867e3046123a3ab5..4d36a0725b81744a9462d15085f20155ccfaf66c 100755 (executable)
@@ -22,7 +22,11 @@ do
        source ./bashrc.ports
        dir=`pwd`
        UNIX_SOCK_PATH1=/tmp
-       UNIX_SOCK_PATH2=$dir/run
+       if [ -d $HOME/tmp ];then
+           UNIX_SOCK_PATH2=$HOME/tmp
+       else
+           UNIX_SOCK_PATH2=$HOME
+       fi
        UNIX_SOCK_FILE=.s.PGSQL.$PGPOOL_PORT
        UNIX_SOCK_GROUP=wheel
        USER=`whoami`
@@ -107,4 +111,4 @@ COMMENT_OUT
        ./shutdownall
 
 done
-exit 0
\ No newline at end of file
+exit 0