diff options
Diffstat (limited to 'coreutils/tee.c')
-rw-r--r-- | coreutils/tee.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/tee.c b/coreutils/tee.c index 4d0e6ff85..1f59f0361 100644 --- a/coreutils/tee.c +++ b/coreutils/tee.c | |||
@@ -11,6 +11,7 @@ | |||
11 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/tee.html */ | 11 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/tee.html */ |
12 | 12 | ||
13 | #include "busybox.h" | 13 | #include "busybox.h" |
14 | #include <signal.h> | ||
14 | 15 | ||
15 | int tee_main(int argc, char **argv) | 16 | int tee_main(int argc, char **argv) |
16 | { | 17 | { |
@@ -37,7 +38,7 @@ int tee_main(int argc, char **argv) | |||
37 | 38 | ||
38 | /* gnu tee ignores SIGPIPE in case one of the output files is a pipe | 39 | /* gnu tee ignores SIGPIPE in case one of the output files is a pipe |
39 | * that doesn't consume all its input. Good idea... */ | 40 | * that doesn't consume all its input. Good idea... */ |
40 | signal(SIGPIPE, SIG_IGN); /* TODO - switch to sigaction.*/ | 41 | signal(SIGPIPE, SIG_IGN); /* TODO - switch to sigaction.*/ |
41 | 42 | ||
42 | /* Allocate an array of FILE *'s, with one extra for a sentinal. */ | 43 | /* Allocate an array of FILE *'s, with one extra for a sentinal. */ |
43 | p = files = (FILE **)xmalloc(sizeof(FILE *) * (argc - optind + 2)); | 44 | p = files = (FILE **)xmalloc(sizeof(FILE *) * (argc - optind + 2)); |