Output the error message on fallback restart execs (sf.net patch
#1475213). Thanks Jonas Koelker, jonaskoelker at users.sourceforge.net.
This commit is contained in:
parent
acf4326f3c
commit
fae88b329c
2 changed files with 9 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -312,7 +312,11 @@ int main(int argc, char **argv) {
|
|||
|
||||
// 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;
|
||||
|
|
Loading…
Reference in a new issue