*: s/BB_SIGS_FATAL/BB_FATAL_SIGS/ (latter proved easier to remember)

top: fix "top </dev/null" case (by Cristian Ionescu-Idbohrn)
This commit is contained in:
Denis Vlasenko
2008-03-19 19:38:46 +00:00
parent 0764a7f72d
commit cf7cf62204
5 changed files with 34 additions and 24 deletions

View File

@ -278,7 +278,7 @@ char *xmalloc_follow_symlinks(const char *path);
enum {
/* bb_signals(BB_SIGS_FATAL, handler) catches all signals which
/* bb_signals(BB_FATAL_SIGS, handler) catches all signals which
* otherwise would kill us, except for those resulting from bugs:
* SIGSEGV, SIGILL, SIGFPE.
* Other fatal signals not included (TODO?):
@ -288,7 +288,7 @@ enum {
* SIGSYS Bad argument to routine
* SIGTRAP Trace/breakpoint trap
*/
BB_SIGS_FATAL = 0
BB_FATAL_SIGS = 0
+ (1 << SIGHUP)
+ (1 << SIGINT)
+ (1 << SIGTERM)