diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-07-11 09:58:45 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-07-11 09:58:45 -0400 |
commit | 94e084162590da9f61653224362e9da4ce8e3e13 (patch) | |
tree | 241d593e3c38d4bde6010c5ccd4297608f84deaf | |
parent | af2ee58e07c8839068297d43bf44304f6bdd37c1 (diff) |
catch null vfork_exec_wrapper before it is too late
-rw-r--r-- | libs/pbd/system_exec.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/pbd/system_exec.cc b/libs/pbd/system_exec.cc index 811bd43d39..01c46aa9eb 100644 --- a/libs/pbd/system_exec.cc +++ b/libs/pbd/system_exec.cc @@ -805,6 +805,10 @@ SystemExec::start (int stderr_mode, const char *vfork_exec_wrapper) #else signal(SIGPIPE, SIG_DFL); #endif + if (!vfork_exec_wrapper) { + error << _("Cannot start external process, no vfork wrapper") << endmsg; + return -1; + } int good_fds[2] = { pok[1], -1 }; close_allv(good_fds); |