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 /coreutils | |
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 'coreutils')
-rw-r--r-- | coreutils/tee.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/coreutils/tee.c b/coreutils/tee.c index f0ec791bb..d0ded58c4 100644 --- a/coreutils/tee.c +++ b/coreutils/tee.c | |||
@@ -69,9 +69,11 @@ int tee_main(int argc, char **argv) | |||
69 | signal(SIGINT, SIG_IGN); /* TODO - switch to sigaction. (why?) */ | 69 | signal(SIGINT, SIG_IGN); /* TODO - switch to sigaction. (why?) */ |
70 | } | 70 | } |
71 | retval = EXIT_SUCCESS; | 71 | retval = EXIT_SUCCESS; |
72 | #ifdef SIGPIPE | ||
72 | /* gnu tee ignores SIGPIPE in case one of the output files is a pipe | 73 | /* gnu tee ignores SIGPIPE in case one of the output files is a pipe |
73 | * that doesn't consume all its input. Good idea... */ | 74 | * that doesn't consume all its input. Good idea... */ |
74 | signal(SIGPIPE, SIG_IGN); | 75 | signal(SIGPIPE, SIG_IGN); |
76 | #endif | ||
75 | 77 | ||
76 | /* Allocate an array of FILE *'s, with one extra for a sentinel. */ | 78 | /* Allocate an array of FILE *'s, with one extra for a sentinel. */ |
77 | fp = files = xzalloc(sizeof(FILE *) * (argc + 2)); | 79 | fp = files = xzalloc(sizeof(FILE *) * (argc + 2)); |