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.270 by root, Tue Dec 4 16:24:00 2007 UTC vs.
Revision 1.271 by root, Tue Dec 4 16:33:42 2007 UTC

600 ev::sig sw_term, sw_int; 600 ev::sig sw_term, sw_int;
601 601
602 /* 602 /*
603 * Catch a fatal signal and tidy up before quitting 603 * Catch a fatal signal and tidy up before quitting
604 */ 604 */
605 void
606 sig_term (ev::sig &w, int revents) 605 void sig_term (ev::sig &w, int revents);
607 {
608 rxvt_emergency_cleanup ();
609 w.stop ();
610 kill (getpid (), w.signum);
611 }
612 606
613 sig_handlers () 607 sig_handlers ()
614 { 608 {
615 sw_term.set<sig_handlers, &sig_handlers::sig_term> (this); 609 sw_term.set<sig_handlers, &sig_handlers::sig_term> (this);
616 sw_int .set<sig_handlers, &sig_handlers::sig_term> (this); 610 sw_int .set<sig_handlers, &sig_handlers::sig_term> (this);
617 } 611 }
618} sig_handlers; 612} sig_handlers;
613
614void
615sig_handlers::sig_term (ev::sig &w, int revents)
616{
617 rxvt_emergency_cleanup ();
618 w.stop ();
619 kill (getpid (), w.signum);
620}
619 621
620char **rxvt_environ; // startup environment 622char **rxvt_environ; // startup environment
621 623
622void 624void
623rxvt_init () 625rxvt_init ()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines