aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Münnich <be.muennich@gmail.com>2013-02-24 14:55:49 +0100
committerBert Münnich <be.muennich@gmail.com>2013-03-19 21:14:56 +0100
commit38ecea3b4d01d1c41a7692d75b888044268a9d02 (patch)
tree78f9efc20d8567a4f216c945d0e2ea44f2455123
parent30802cec0f233aa9977256684cb749df6c7e28c0 (diff)
Polished info script execution
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index d6cdcd4..db95770 100644
--- a/main.c
+++ b/main.c
@@ -224,7 +224,6 @@ void open_info(void)
if (info.fd != -1) {
close(info.fd);
kill(pid, SIGTERM);
- while (waitpid(-1, NULL, WNOHANG) > 0);
info.fd = -1;
}
win.bar.l[0] = '\0';
@@ -242,6 +241,8 @@ void open_info(void)
close(pfd[0]);
dup2(pfd[1], 1);
execl(info.script, info.script, files[fileidx].name, NULL);
+ warn("could not exec: %s", info.script);
+ exit(EXIT_FAILURE);
}
}