fix close_allv() sentinel
authorRobin Gareus <robin@gareus.org>
Wed, 31 Jul 2013 17:29:06 +0000 (19:29 +0200)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 8 Aug 2013 19:26:18 +0000 (15:26 -0400)
gtk2_ardour/system_exec.cc

index 55dbc60bb4c2cf80c367ca1484e453692c07a2dd..59f3647e51fc703f5fa75a6bc84a65b0807b84a9 100644 (file)
@@ -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.. */