(restore_default_color_handler, sigtstp_handler): Remove functions.
authorJim Meyering <jim@meyering.net>
Sun, 10 Nov 2002 11:11:34 +0000 (11:11 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 10 Nov 2002 11:11:34 +0000 (11:11 +0000)
commitbb38561062c417e7bb242fea6bef848599ee6766
treed27f8963140e65a4b402bc07fb3dd4defd61198d
parent20282f499287003e4d435d181b65e799ac8bdd25
(restore_default_color_handler, sigtstp_handler): Remove functions.
(sighandler): New function, based on the one in sort.c.
(main): Use sigaction, if possible; otherwise signal.
Handle these signals:
SIGHUP, SIGINT, SIGPIPE, SIGQUIT, SIGTERM, SIGTSTP.
Don't register our handler if the signal is already being ignored.
src/ls.c