summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2013-07-31 19:29:06 +0200
committerRobin Gareus <robin@gareus.org>2013-07-31 19:29:06 +0200
commit9993ac23caad2413e8b2a8175bf3b814459c6390 (patch)
tree56c59061325fa6c73fa33993c5ad9e92b8b6296d /gtk2_ardour
parentbd92bfe643d9b1a0391ea6ccb4cca354a76a9f1a (diff)
fix close_allv() sentinel
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/system_exec.cc4
1 files changed, 1 insertions, 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.. */