Show More
@@ -180,10 +180,11 b' class KernelApp(BaseIPythonApplication):' | |||||
180 | s.bind("tcp://%s:%i" % (self.ip, port)) |
|
180 | s.bind("tcp://%s:%i" % (self.ip, port)) | |
181 | elif self.transport == 'ipc': |
|
181 | elif self.transport == 'ipc': | |
182 | if port <= 0: |
|
182 | if port <= 0: | |
183 |
|
|
183 | port = 1 | |
|
184 | path = "%s-%i" % (self.ip, port) | |||
|
185 | while os.path.exists(path): | |||
|
186 | port = port + 1 | |||
184 | path = "%s-%i" % (self.ip, port) |
|
187 | path = "%s-%i" % (self.ip, port) | |
185 | if not os.path.exists(path): |
|
|||
186 | break |
|
|||
187 | else: |
|
188 | else: | |
188 | path = "%s-%i" % (self.ip, port) |
|
189 | path = "%s-%i" % (self.ip, port) | |
189 | s.bind("ipc://%s" % path) |
|
190 | s.bind("ipc://%s" % path) |
General Comments 0
You need to be logged in to leave comments.
Login now