Update of /cvsroot/tmux/tmux
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv2823

Modified Files:
        cmd-run-shell.c 
Log Message:
Sync OpenBSD patchset 705:

Don't die if the client has been detached when the job finishes, just
don't display the output.


Index: cmd-run-shell.c
===================================================================
RCS file: /cvsroot/tmux/tmux/cmd-run-shell.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- cmd-run-shell.c     14 Nov 2009 17:56:39 -0000      1.6
+++ cmd-run-shell.c     6 Jun 2010 00:04:59 -0000       1.7
@@ -82,6 +82,11 @@
        int                              retcode;
        u_int                            lines;
 
+       if (ctx->cmdclient != NULL && ctx->cmdclient->flags & CLIENT_DEAD)
+               return;
+       if (ctx->curclient != NULL && ctx->curclient->flags & CLIENT_DEAD)
+               return;
+
        lines = 0;
        do {
                if ((line = evbuffer_readline(job->event->input)) != NULL) {


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to