projects
/
espeaktime
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
424cfda
)
applet: print strerror and exit if execlp() fails
author
Alex Badea
<vamposdecampos@gmail.com>
Sun, 20 Jun 2010 10:07:24 +0000
(13:07 +0300)
committer
Alex Badea
<vamposdecampos@gmail.com>
Sun, 20 Jun 2010 10:07:24 +0000
(13:07 +0300)
src/applet.c
patch
|
blob
|
history
diff --git
a/src/applet.c
b/src/applet.c
index
a0fae5b
..
9659081
100644
(file)
--- a/
src/applet.c
+++ b/
src/applet.c
@@
-1,4
+1,5
@@
#include <unistd.h>
+#include <errno.h>
#include <gtk/gtk.h>
#include <hildon/hildon.h>
#include <hildon-cp-plugin/hildon-cp-plugin-interface.h>
@@
-158,7
+159,8
@@
static void cfg_speak(struct espeaktime_settings *cfg, gboolean test_mode)
res = execlp(ESPEAK_BIN, ESPEAK_BIN,
"-a", astr, "-p", pstr, "-s", sstr, "-v", vstr,
text, NULL);
- g_print("execlp: %d\n", res);
+ g_print("execlp: %d (%s)\n", res, g_strerror(errno));
+ exit(res);
}