nsxiv38ecea3
Polished info script execution
+2 −1
1 file changed
- M main.c +2 −1
| @@ -224,7 +224,6 @@ void open_info(void) | |||
| 224 | 224 | if (info.fd != -1) { | |
| 225 | 225 | close(info.fd); | |
| 226 | 226 | kill(pid, SIGTERM); | |
| 227 | − | while (waitpid(-1, NULL, WNOHANG) > 0); | |
| 228 | 227 | info.fd = -1; | |
| 229 | 228 | } | |
| 230 | 229 | win.bar.l[0] = '\0'; | |
| @@ -242,6 +241,8 @@ void open_info(void) | |||
| 242 | 241 | close(pfd[0]); | |
| 243 | 242 | dup2(pfd[1], 1); | |
| 244 | 243 | execl(info.script, info.script, files[fileidx].name, NULL); | |
| 244 | + | warn("could not exec: %s", info.script); | |
| 245 | + | exit(EXIT_FAILURE); | |
| 245 | 246 | } | |
| 246 | 247 | } | |
| 247 | 248 | ||