mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 17:16:38 +01:00
catch null vfork_exec_wrapper before it is too late
This commit is contained in:
parent
af2ee58e07
commit
94e0841625
1 changed files with 4 additions and 0 deletions
|
|
@ -805,6 +805,10 @@ SystemExec::start (int stderr_mode, const char *vfork_exec_wrapper)
|
||||||
#else
|
#else
|
||||||
signal(SIGPIPE, SIG_DFL);
|
signal(SIGPIPE, SIG_DFL);
|
||||||
#endif
|
#endif
|
||||||
|
if (!vfork_exec_wrapper) {
|
||||||
|
error << _("Cannot start external process, no vfork wrapper") << endmsg;
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
int good_fds[2] = { pok[1], -1 };
|
int good_fds[2] = { pok[1], -1 };
|
||||||
close_allv(good_fds);
|
close_allv(good_fds);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue