Open isbadawi opened 10 years ago
There's a few things going on here.
pymatbridge
spawns the matlab/octave process, that process inherits the open files and ports, so when the reloaded process tried to bind to the port, it's still being used. The way to fix this is to pass close_fds=True
to subprocess.Popen
-- could probably send a PR to fix this.connect()
method for those cases when we know there's a server already running.
This is not a bug per se, but it's annoying for development. Probably related to pymatbridge -- usually the server won't restart until a stray Matlab or Octave process is killed.