Output the error message on fallback restart execs (sf.net patch #1475213). Thanks Jonas Koelker, jonaskoelker at users.sourceforge.net.
simonb simonb
2 files changed,
9 insertions(+),
1 deletions(-)
M
ChangeLog
→
ChangeLog
@@ -1,5 +1,9 @@
(Format: Year/Month/Day) Changes for 0.9.16: +*06/04/25: + * Output the error message on fallback restart execs (sf patch#1475213) + (Thanks Jonas Kölker, jonaskoelker at users.sourceforge.net). + main.cc *06/04/24: * Use -Wall when --enable-debug and some warning fixes (Simon + thanks Jonas Koelker)
M
src/main.cc
→
src/main.cc
@@ -312,7 +312,11 @@ }
// fall back in case the above execlp doesn't work execvp(argv[0], argv); - execvp(FbTk::StringUtil::basename(argv[0]).c_str(), argv); + perror(argv[0]); + + const char *basename = FbTk::StringUtil::basename(argv[0]).c_str(); + execvp(basename, argv); + perror(basename); } return exitcode;