Permalink
Browse files

Polished info script execution

  • Loading branch information...
1 parent 30802ce commit 38ecea3b4d01d1c41a7692d75b888044268a9d02 @muennich committed Feb 24, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 main.c
View
3 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);
}
}

0 comments on commit 38ecea3

Please sign in to comment.