Rename cmd_q dead flag to a general flags bitmask (will be more flags later).

This commit is contained in:
nicm
2015-09-16 22:24:54 +00:00
parent 16ee4de5df
commit a4b4b29987
5 changed files with 11 additions and 7 deletions

View File

@ -143,7 +143,7 @@ cmd_if_shell_callback(struct job *job)
struct cmd_list *cmdlist;
char *cause, *cmd;
if (cmdq->dead)
if (cmdq->flags & CMD_Q_DEAD)
return;
if (!WIFEXITED(job->status) || WEXITSTATUS(job->status) != 0)