… | |
… | |
321 | */ |
321 | */ |
322 | /* EXTPROTO */ |
322 | /* EXTPROTO */ |
323 | RETSIGTYPE |
323 | RETSIGTYPE |
324 | rxvt_Exit_signal(int sig) |
324 | rxvt_Exit_signal(int sig) |
325 | { |
325 | { |
326 | signal(sig, SIG_DFL); |
326 | signal (sig, SIG_DFL); |
327 | #ifdef DEBUG_CMD |
327 | #ifdef DEBUG_CMD |
328 | rxvt_print_error("signal %d", sig); |
328 | rxvt_print_error ("signal %d", sig); |
329 | #endif |
329 | #endif |
330 | rxvt_clean_exit(); |
330 | rxvt_clean_exit(); |
331 | kill(getpid(), sig); |
331 | kill (getpid (), sig); |
332 | } |
332 | } |
333 | |
333 | |
334 | /* INTPROTO */ |
334 | /* INTPROTO */ |
335 | int |
335 | int |
336 | rxvt_xerror_handler (Display *display, XErrorEvent *event) |
336 | rxvt_xerror_handler (Display *display, XErrorEvent *event) |
… | |
… | |
353 | */ |
353 | */ |
354 | /* EXTPROTO */ |
354 | /* EXTPROTO */ |
355 | void |
355 | void |
356 | rxvt_clean_exit () |
356 | rxvt_clean_exit () |
357 | { |
357 | { |
|
|
358 | // TODO: rxvtd should clean up all ressources |
|
|
359 | if (GET_R) |
358 | GET_R->destroy (); |
360 | GET_R->destroy (); |
359 | } |
361 | } |
360 | |
362 | |
361 | /* ------------------------------------------------------------------------- * |
363 | /* ------------------------------------------------------------------------- * |
362 | * MEMORY ALLOCATION WRAPPERS * |
364 | * MEMORY ALLOCATION WRAPPERS * |
363 | * ------------------------------------------------------------------------- */ |
365 | * ------------------------------------------------------------------------- */ |