diff options
author | Ron Yorston <rmy@pobox.com> | 2018-03-01 11:18:33 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2018-03-01 11:18:33 +0000 |
commit | 5f8dac68690e92f0be220f8f8d9f797a2aedc806 (patch) | |
tree | 28c1d611ace374f615cac23415b35b2ab54059f4 /include/libbb.h | |
parent | 701a8d6783f09597e1c9b386b1e6ba890807854c (diff) | |
download | busybox-w32-5f8dac68690e92f0be220f8f8d9f797a2aedc806.tar.gz busybox-w32-5f8dac68690e92f0be220f8f8d9f797a2aedc806.tar.bz2 busybox-w32-5f8dac68690e92f0be220f8f8d9f797a2aedc806.zip |
Remove fake signal-handling code
Microsoft Windows has only limited support for signals. busybox-w32
initially papered over this fact by adding definitions for unsupported
signals and signal-handling functions.
Remove this fake code and deal with the consequences by excluding
anything that fails to compile as a result.
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 761370111..4a59ee7d8 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -526,18 +526,36 @@ enum { | |||
526 | * Dance around with long long to guard against that... | 526 | * Dance around with long long to guard against that... |
527 | */ | 527 | */ |
528 | BB_FATAL_SIGS = (int)(0 | 528 | BB_FATAL_SIGS = (int)(0 |
529 | #ifdef SIGHUP | ||
529 | + (1LL << SIGHUP) | 530 | + (1LL << SIGHUP) |
531 | #endif | ||
530 | + (1LL << SIGINT) | 532 | + (1LL << SIGINT) |
531 | + (1LL << SIGTERM) | 533 | + (1LL << SIGTERM) |
534 | #ifdef SIGPIPE | ||
532 | + (1LL << SIGPIPE) // Write to pipe with no readers | 535 | + (1LL << SIGPIPE) // Write to pipe with no readers |
536 | #endif | ||
537 | #ifdef SIGQUIT | ||
533 | + (1LL << SIGQUIT) // Quit from keyboard | 538 | + (1LL << SIGQUIT) // Quit from keyboard |
539 | #endif | ||
534 | + (1LL << SIGABRT) // Abort signal from abort(3) | 540 | + (1LL << SIGABRT) // Abort signal from abort(3) |
541 | #ifdef SIGALRM | ||
535 | + (1LL << SIGALRM) // Timer signal from alarm(2) | 542 | + (1LL << SIGALRM) // Timer signal from alarm(2) |
543 | #endif | ||
544 | #ifdef SIGVTALRM | ||
536 | + (1LL << SIGVTALRM) // Virtual alarm clock | 545 | + (1LL << SIGVTALRM) // Virtual alarm clock |
546 | #endif | ||
547 | #ifdef SIGXCPU | ||
537 | + (1LL << SIGXCPU) // CPU time limit exceeded | 548 | + (1LL << SIGXCPU) // CPU time limit exceeded |
549 | #endif | ||
550 | #ifdef SIGXFSZ | ||
538 | + (1LL << SIGXFSZ) // File size limit exceeded | 551 | + (1LL << SIGXFSZ) // File size limit exceeded |
552 | #endif | ||
553 | #ifdef SIGUSR1 | ||
539 | + (1LL << SIGUSR1) // Yes kids, these are also fatal! | 554 | + (1LL << SIGUSR1) // Yes kids, these are also fatal! |
555 | #endif | ||
556 | #ifdef SIGUSR1 | ||
540 | + (1LL << SIGUSR2) | 557 | + (1LL << SIGUSR2) |
558 | #endif | ||
541 | + 0), | 559 | + 0), |
542 | }; | 560 | }; |
543 | #if !ENABLE_PLATFORM_MINGW32 | 561 | #if !ENABLE_PLATFORM_MINGW32 |