diff options
author | Kamil Dudka <kdudka@redhat.com> | 2016-09-06 17:38:26 +0200 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2016-09-07 10:16:59 +0100 |
commit | 5445f7811ff945ea13aa2a0fd797eb4c0a0e4db0 (patch) | |
tree | 4be1468294a8ede68d9602609618b56b0f0fc9af /NEWS | |
parent | 22d188e2991ce64445ba89dbb32e3c6bec42e235 (diff) | |
download | coreutils-5445f7811ff945ea13aa2a0fd797eb4c0a0e4db0.tar.xz |
ls: allow interruption when reading slow directories
Postpone installation of signal handlers until they're needed.
That is right before the first escape sequence is printed.
* src/ls.c (signal_setup): A new function refactored from main()
to set and restore signal handlers.
(main): Move signal handler setup to put_indicator()
so that the default signal handling is untouched as long as possible.
Adjusted condition for restoring signal handlers to reflect the change.
(put_indicator): Install signal handlers if called for the very first
time. It uses the same code that was in main() prior to this commit.
* NEWS: Mention the improvement.
See https://bugzilla.redhat.com/1365933
Fixes http://bugs.gnu.org/24232
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -59,6 +59,9 @@ GNU coreutils NEWS -*- outline -*- install -Z now also sets the default SELinux context for created directories. + ls is now fully responsive to signals until the first escape sequence is + written to a terminal. + stat and tail now know about "prl_fs" (a parallels file system), "m1fs" (a Plexistor file system), "wslfs" (Windows Subsystem for Linux), and "smb2". stat -f --format=%T now reports the file system type, and |