ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/main.C
(Generate patch)

Comparing rxvt-unicode/src/main.C (file contents):
Revision 1.151 by root, Wed Dec 21 19:50:16 2005 UTC vs.
Revision 1.152 by root, Thu Dec 22 16:44:10 2005 UTC

289 delete keyboard; 289 delete keyboard;
290#endif 290#endif
291} 291}
292 292
293void 293void
294rxvt_term::child_exit ()
295{
296 cmd_pid = 0;
297
298 if (!(options & Opt_hold))
299 destroy ();
300}
301
302void
294rxvt_term::destroy () 303rxvt_term::destroy ()
295{ 304{
296 if (destroy_ev.active) 305 if (destroy_ev.active)
297 return; 306 return;
298 307
522 531
523 while ((pid = waitpid (-1, NULL, WNOHANG)) > 0) 532 while ((pid = waitpid (-1, NULL, WNOHANG)) > 0)
524 for (rxvt_term **t = rxvt_term::termlist.begin (); t < rxvt_term::termlist.end (); t++) 533 for (rxvt_term **t = rxvt_term::termlist.begin (); t < rxvt_term::termlist.end (); t++)
525 if (pid == (*t)->cmd_pid) 534 if (pid == (*t)->cmd_pid)
526 { 535 {
527 (*t)->destroy (); 536 (*t)->child_exit ();
528 break; 537 break;
529 } 538 }
530 } 539 }
531 540
532 /* 541 /*

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines