]>
Commit | Line | Data |
---|---|---|
94b6b810 AM |
1 | --- coreutils-8.14/src/ls.c.org 2011-12-08 11:13:48.597770882 +0100 |
2 | +++ coreutils-8.14/src/ls.c 2011-12-08 11:16:34.612089051 +0100 | |
3 | @@ -2583,6 +2583,11 @@ | |
4 | } | |
5 | else | |
6 | break; | |
7 | + | |
8 | + /* When processing a very large directory, and since we've inhibited | |
9 | + interrupts, this loop would take so long that ls would be annoyingly | |
10 | + uninterruptible. This ensures that it handles signals promptly. */ | |
11 | + process_signals (); | |
12 | } | |
13 | ||
14 | if (closedir (dirp) != 0) | |
15 | @@ -4041,9 +4046,9 @@ | |
df9dfa01 AM |
16 | if (stack) |
17 | PUSH_CURRENT_DIRED_POS (stack); | |
18 | ||
19 | + process_signals (); | |
20 | if (used_color_this_time) | |
21 | { | |
22 | - process_signals (); | |
23 | prep_non_filename_text (); | |
24 | if (start_col / line_length != (start_col + width - 1) / line_length) | |
25 | put_indicator (&color_indicator[C_CLR_TO_EOL]); |