=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-source-file.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- src/usr.bin/tmux/cmd-source-file.c 2013/10/10 12:00:23 1.18 +++ src/usr.bin/tmux/cmd-source-file.c 2013/10/10 12:04:38 1.19 @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-source-file.c,v 1.18 2013/10/10 12:00:23 nicm Exp $ */ +/* $OpenBSD: cmd-source-file.c,v 1.19 2013/10/10 12:04:38 nicm Exp $ */ /* * Copyright (c) 2008 Tiago Cunha @@ -94,6 +94,9 @@ cmd_source_file_done(struct cmd_q *cmdq1) { struct cmd_q *cmdq = cmdq1->data; + + if (cmdq1->client_exit >= 0) + cmdq->client_exit = cmdq1->client_exit; cmdq_free(cmdq1);