On my Debian Wheezy system, I used to start my X session with the startx command.My .xinitrc file is:exec /usr/bin/awesome --config /home/cscs/.config/awesome/rc.lua >> ~/.cache/awesome/stdout 2 >> ~/.cache/awesome/stderrIs there an other way to implement this using trap  INT somewhere? I had no success catching the CTRL+C sequence, my X server exited with the message: unexpected signal 2.Login managers (slim, gdm, kdm, etc.) are not applicable.
How to prevent killing the X server with CTRL+C using bash traps?
bash;session;x server
There is no need to use trap here.You actually want to make xinit run WITHOUT a terminal, thus making SIGINT to be avoided after CTRL-C.Run X server like this:startx & disown; exitand edit /etc/X11/Xwrapper.config so that a specific user can run X.