show error message if exec() failed: not pretty but better than nothing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -654,6 +654,11 @@ long wxExecute(wxChar **argv,
|
||||
|
||||
execvp (*mb_argv, mb_argv);
|
||||
|
||||
fprintf(stderr, "execvp(");
|
||||
for ( char **ppc = mb_argv; *ppc; ppc++ )
|
||||
fprintf(stderr, "%s%s", ppc == mb_argv ? "" : ", ", *ppc);
|
||||
fprintf(stderr, ") failed with error %d!\n", errno);
|
||||
|
||||
// there is no return after successful exec()
|
||||
_exit(-1);
|
||||
|
||||
|
Reference in New Issue
Block a user