Skip to content

Commit

Permalink
* Avoid vsthost exiting if SIGCHLD is received
Browse files Browse the repository at this point in the history
  • Loading branch information
cannam committed Jan 7, 2008
1 parent 019c54c commit 8be9588
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions remotevstclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ RemoteVSTClient::RemoteVSTClient(std::string dllName, bool showGUI) :
cleanup();
throw((std::string)"Fork failed");
} else if (child == 0) { // child process
if (execlp(fileName.c_str(), fileName.c_str(), argStr, 0)) {
if (execlp(fileName.c_str(), fileName.c_str(), argStr, NULL)) {
perror("Exec failed");
exit(1);
}
Expand Down Expand Up @@ -336,7 +336,7 @@ RemoteVSTClient::queryPlugins(std::vector<PluginRecord> &plugins)
unlink(fifoFile);
throw((std::string)"Fork failed");
} else if (child == 0) { // child process
if (execlp(fileName.c_str(), fileName.c_str(), fifoFile, 0)) {
if (execlp(fileName.c_str(), fileName.c_str(), fifoFile, NULL)) {
perror("Exec failed");
unlink(fifoFile);
exit(1);
Expand Down
2 changes: 1 addition & 1 deletion vsthost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,6 @@ main(int argc, char **argv)
sigaction(SIGQUIT, &sa, 0);
sigaction(SIGTERM, &sa, 0);
sigaction(SIGPIPE, &sa, 0);
sigaction(SIGCHLD, &sa, 0);

jackData.client = 0;

Expand All @@ -534,6 +533,7 @@ main(int argc, char **argv)
sigaddset(&_signals, SIGTERM);
sigaddset(&_signals, SIGUSR1);
sigaddset(&_signals, SIGUSR2);
sigaddset(&_signals, SIGCHLD);
pthread_sigmask(SIG_BLOCK, &_signals, 0);

bool hasMIDI = plugin->hasMIDIInput();
Expand Down

0 comments on commit 8be9588

Please sign in to comment.