osxmidi / LinVst

Linux Windows vst wrapper/bridge
GNU General Public License v3.0
674 stars 41 forks source link

Server process does not exit when the plugin host crashes #144

Closed marcan closed 3 years ago

marcan commented 4 years ago

When the plugin host exits unexpectedly, the child processes do not exit. There should be some way for them to check that the server died and force an exit.

Currently when the host dies, I have to keep killing all servers before restarting it, otherwise they pile up and cause issues.

osxmidi commented 4 years ago

When the plugin host exits unexpectedly, the child processes do not exit. There should be some way for them to check that the server died and force an exit.

Currently when the host dies, I have to keep killing all servers before restarting it, otherwise they pile up and cause issues.

That might be hard to implement as when the host crashes it cuts communication with the server.

marcan commented 4 years ago

The server could periodically check whether the host is alive in some way. Even something as simple as checking whether the result of getppid() changes would work.

osxmidi commented 4 years ago

Good suggestion, I'll try it out.