Changeset: 48f71a941e7c for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=48f71a941e7c
Modified Files:
        testing/process.py
Branch: Dec2016
Log Message:

When changing the port number of the server, also change the socket file.


diffs (22 lines):

diff --git a/testing/process.py b/testing/process.py
--- a/testing/process.py
+++ b/testing/process.py
@@ -363,8 +363,18 @@ def server(args = [], stdin = None, stdo
                 del cmd[i]
                 del cmd[i - 1]
                 break
+        usock = None
+        for i in range(len(cmd)):
+            if cmd[i][:11] == 'mapi_usock=':
+                usock = cmd[i][11:cmd[i].rfind('.')]
+                del cmd[i]
+                del cmd[i - 1]
+                break
         cmd.append('--set')
         cmd.append('mapi_port=%d' % int(mapiport))
+        if usock is not None:
+            cmd.append('--set')
+            cmd.append('mapi_usock=%s.%d' % (usock, int(mapiport)))
     for i in range(len(cmd)):
         if cmd[i][:9] == '--dbpath=':
             dbpath = cmd[i][9:]
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to