signals and clean exit

Joël Riou joel.riou at normalesup.org
Tue Feb 1 22:01:35 CET 2005


Hi,

I am switching from xterm to rxvt-unicode :) It seems that urxvt does not
handle signals such that SIGINT and SIGQUIT as it does for SIGTERM. It
would be useful if there was the same sighandlers for these signals: if I ^C
a urxvt launched from some interactive shell (I use zsh if that matters),
the program receives a SIGINT which causes a brutal exit and utmp enties
are not cleared. I am not a great fan of utmp stuffs, but it would look
nicer to have utmp entries cleaned in these common situations.

There is another similar problem: if the connection with the X server
breaks (for instance when we log out by C-M-Backspace, thus killing the X
server), the Xlib launches some IOErrorhandler which seems to call exit()
by default, it would be great if utmp entries were destroyed before
exiting. [Caution: the function set by XSetIOErrorHandler() is supposed to
do some job and exit, if it does not exit, the Xlib will do it...]

-- 
Joël Riou





More information about the rxvt-unicode mailing list