diff options
author | simonb <simonb> | 2006-04-25 02:11:19 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-04-25 02:11:19 (GMT) |
commit | fae88b329c63c16755f2c9b7a5a655a1414ab10f (patch) | |
tree | 23447b5d4bbaa6334dd7806b449f01e5d5411e71 /src/main.cc | |
parent | acf4326f3cc3451aaf874b0b0777d69be5834e57 (diff) | |
download | fluxbox-fae88b329c63c16755f2c9b7a5a655a1414ab10f.zip fluxbox-fae88b329c63c16755f2c9b7a5a655a1414ab10f.tar.bz2 |
Output the error message on fallback restart execs (sf.net patch
#1475213). Thanks Jonas Koelker, jonaskoelker at users.sourceforge.net.
Diffstat (limited to 'src/main.cc')
-rw-r--r-- | src/main.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc index b458fbf..00bc163 100644 --- a/src/main.cc +++ b/src/main.cc | |||
@@ -312,7 +312,11 @@ int main(int argc, char **argv) { | |||
312 | 312 | ||
313 | // fall back in case the above execlp doesn't work | 313 | // fall back in case the above execlp doesn't work |
314 | execvp(argv[0], argv); | 314 | execvp(argv[0], argv); |
315 | execvp(FbTk::StringUtil::basename(argv[0]).c_str(), argv); | 315 | perror(argv[0]); |
316 | |||
317 | const char *basename = FbTk::StringUtil::basename(argv[0]).c_str(); | ||
318 | execvp(basename, argv); | ||
319 | perror(basename); | ||
316 | } | 320 | } |
317 | 321 | ||
318 | return exitcode; | 322 | return exitcode; |