int res;
pid_t pid;
- pid = fork();
- if (pid < 0) {
- perror("fork");
- return;
- }
- if (pid)
- return;
time(&t);
tm = localtime(&t);
g_snprintf(vstr, sizeof(vstr), "%s%s%s", cfg->voice,
(*cfg->effect) ? "+" : "", cfg->effect);
strftime(text, sizeof(text), cfg->text, tm);
+
+ pid = fork();
+ if (pid < 0) {
+ perror("fork");
+ return;
+ }
+ if (pid)
+ return;
g_print("execlp: -a '%s' -p '%s' -v '%s' '%s'\n",
astr, pstr, sstr, vstr, text);
res = execlp(ESPEAK_BIN, ESPEAK_BIN,