git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1663
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
close(STDIN_FILENO);
close(STDOUT_FILENO);
close(STDERR_FILENO);
+ // some programs complain about sterr not being open, so
+ // redirect them:
+ open("/dev/null", O_RDONLY); // stdin
+ open("/dev/null", O_WRONLY); // stdout
+ open("/dev/null", O_WRONLY); // stderr
+
#ifdef _AIX
execvp ((const char *)*argv, (const char **)argv);
close(STDIN_FILENO);
close(STDOUT_FILENO);
close(STDERR_FILENO);
+ // some programs complain about sterr not being open, so
+ // redirect them:
+ open("/dev/null", O_RDONLY); // stdin
+ open("/dev/null", O_WRONLY); // stdout
+ open("/dev/null", O_WRONLY); // stderr
+
#ifdef _AIX
execvp ((const char *)*argv, (const char **)argv);