aboutsummaryrefslogtreecommitdiff
path: root/cmd-queue.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2015-12-13 18:01:11 +0000
committerThomas Adam <thomas@xteddy.org>2015-12-13 18:01:11 +0000
commitd37a5800850f899cddb4efadc0304cfc76376e26 (patch)
tree872d25b5f4a74f9e38d58a129f2cf702113e127b /cmd-queue.c
parentae5ddfdc1ae471f13c6d0e94ff4029d4fb29e1f4 (diff)
parent9b7697db62dc1c809955e8f8fea2868c230cc503 (diff)
downloadrtmux-d37a5800850f899cddb4efadc0304cfc76376e26.tar.gz
rtmux-d37a5800850f899cddb4efadc0304cfc76376e26.tar.bz2
rtmux-d37a5800850f899cddb4efadc0304cfc76376e26.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-queue.c')
-rw-r--r--cmd-queue.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd-queue.c b/cmd-queue.c
index 7b2675fa..c0fc26c6 100644
--- a/cmd-queue.c
+++ b/cmd-queue.c
@@ -199,6 +199,8 @@ cmdq_continue_one(struct cmd_q *cmdq)
if (cmd_prepare_state(cmd, cmdq) != 0)
goto error;
retval = cmd->entry->exec(cmd, cmdq);
+ if (retval == CMD_RETURN_ERROR)
+ goto error;
cmdq_guard(cmdq, "end", flags);
return (retval);