diff options
Diffstat (limited to 'coreutils/tee.c')
-rw-r--r-- | coreutils/tee.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/tee.c b/coreutils/tee.c index 13fb4a3c1..b38801755 100644 --- a/coreutils/tee.c +++ b/coreutils/tee.c | |||
@@ -36,12 +36,12 @@ int tee_main(int argc, char **argv) | |||
36 | mode += (retval & 2); /* Since 'a' is the 2nd option... */ | 36 | mode += (retval & 2); /* Since 'a' is the 2nd option... */ |
37 | 37 | ||
38 | if (retval & 1) { | 38 | if (retval & 1) { |
39 | signal(SIGINT, SIG_IGN); /* TODO - switch to sigaction. */ | 39 | signal(SIGINT, SIG_IGN); /* TODO - switch to sigaction. (why?) */ |
40 | } | 40 | } |
41 | retval = EXIT_SUCCESS; | 41 | retval = EXIT_SUCCESS; |
42 | /* gnu tee ignores SIGPIPE in case one of the output files is a pipe | 42 | /* gnu tee ignores SIGPIPE in case one of the output files is a pipe |
43 | * that doesn't consume all its input. Good idea... */ | 43 | * that doesn't consume all its input. Good idea... */ |
44 | signal(SIGPIPE, SIG_IGN); /* TODO - switch to sigaction. */ | 44 | signal(SIGPIPE, SIG_IGN); |
45 | 45 | ||
46 | /* Allocate an array of FILE *'s, with one extra for a sentinal. */ | 46 | /* Allocate an array of FILE *'s, with one extra for a sentinal. */ |
47 | fp = files = xzalloc(sizeof(FILE *) * (argc + 2)); | 47 | fp = files = xzalloc(sizeof(FILE *) * (argc + 2)); |