mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
possible fix for no-shutdown of external app (ie harvid)
This commit is contained in:
parent
b13c5bff54
commit
1053529e4f
1 changed files with 7 additions and 4 deletions
|
|
@ -444,10 +444,13 @@ SystemExec::wait (int options)
|
|||
int status=0;
|
||||
if (pid==0) return -1;
|
||||
if (pid==::waitpid(pid, &status, options)) {
|
||||
pid=0;
|
||||
}
|
||||
if (errno == ECHILD) {
|
||||
pid=0;
|
||||
if (WEXITSTATUS(status) || WIFSIGNALED(status)) {
|
||||
pid=0;
|
||||
}
|
||||
} else {
|
||||
if (errno == ECHILD) {
|
||||
pid=0;
|
||||
}
|
||||
}
|
||||
return status;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue