From 9993ac23caad2413e8b2a8175bf3b814459c6390 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 31 Jul 2013 19:29:06 +0200 Subject: [PATCH] fix close_allv() sentinel --- gtk2_ardour/system_exec.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gtk2_ardour/system_exec.cc b/gtk2_ardour/system_exec.cc index 55dbc60bb4..59f3647e51 100644 --- a/gtk2_ardour/system_exec.cc +++ b/gtk2_ardour/system_exec.cc @@ -724,10 +724,8 @@ SystemExec::start (int stderr_mode) signal(SIGPIPE, SIG_DFL); #endif -#ifndef __WIN32__ - int good_fds[1] = { 0 }; + int good_fds[1] = { -1 }; close_allv(good_fds); -#endif ::execve(argp[0], argp, envp); /* if we reach here something went wrong.. */