… | |
… | |
495 | signal (SIGPIPE, SIG_IGN); |
495 | signal (SIGPIPE, SIG_IGN); |
496 | |
496 | |
497 | sig_handlers.sw_term.start (SIGTERM); ev_unref (); |
497 | sig_handlers.sw_term.start (SIGTERM); ev_unref (); |
498 | sig_handlers.sw_int.start (SIGINT); ev_unref (); |
498 | sig_handlers.sw_int.start (SIGINT); ev_unref (); |
499 | |
499 | |
500 | /* need to trap SIGURG for SVR4 (Unixware) rlogin */ |
|
|
501 | /* signal (SIGURG, SIG_DFL); */ |
|
|
502 | |
|
|
503 | old_xerror_handler = XSetErrorHandler ((XErrorHandler) rxvt_xerror_handler); |
500 | old_xerror_handler = XSetErrorHandler ((XErrorHandler) rxvt_xerror_handler); |
504 | // TODO: handle this with exceptions and tolerate the memory loss |
501 | // TODO: handle this with exceptions and tolerate the memory loss |
505 | XSetIOErrorHandler (rxvt_xioerror_handler); |
502 | XSetIOErrorHandler (rxvt_xioerror_handler); |
506 | |
503 | |
507 | XrmInitialize (); |
504 | XrmInitialize (); |