--- rxvt-unicode/src/main.C 2005/12/21 19:50:16 1.151 +++ rxvt-unicode/src/main.C 2005/12/22 16:44:10 1.152 @@ -291,6 +291,15 @@ } void +rxvt_term::child_exit () +{ + cmd_pid = 0; + + if (!(options & Opt_hold)) + destroy (); +} + +void rxvt_term::destroy () { if (destroy_ev.active) @@ -524,7 +533,7 @@ for (rxvt_term **t = rxvt_term::termlist.begin (); t < rxvt_term::termlist.end (); t++) if (pid == (*t)->cmd_pid) { - (*t)->destroy (); + (*t)->child_exit (); break; } }