Krolyxon
Commit 38ecea3

Branches

Refs →

nsxiv38ecea3

Polished info script execution

Author
Bert Münnich
Date
2013-02-24 14:55 +0100
Committer
Bert Münnich · 2013-03-19 21:14 +0100
Parent
30802ce
Commit
38ecea3b4d01d1c41a7692d75b888044268a9d02

+2 −1

1 file changed

  1. M main.c +2 −1
M main.c View
@@ -224,7 +224,6 @@ void open_info(void)
224224 if (info.fd != -1) {
225225 close(info.fd);
226226 kill(pid, SIGTERM);
227− while (waitpid(-1, NULL, WNOHANG) > 0);
228227 info.fd = -1;
229228 }
230229 win.bar.l[0] = '\0';
@@ -242,6 +241,8 @@ void open_info(void)
242241 close(pfd[0]);
243242 dup2(pfd[1], 1);
244243 execl(info.script, info.script, files[fileidx].name, NULL);
244+ warn("could not exec: %s", info.script);
245+ exit(EXIT_FAILURE);
245246 }
246247 }
247248