diff options
author | Pádraig Brady <P@draigBrady.com> | 2011-07-06 23:17:10 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2011-07-08 11:23:08 +0100 |
commit | 4496c94091f8a6bc95fc1c0868eba632fae99ba3 (patch) | |
tree | 44e2b1a618a781abeb02a639387efcf6320abbed /gnulib-tests | |
parent | 28a7fb52bc1160ffe1acac2e4fc3fa495d021ec4 (diff) | |
download | coreutils-4496c94091f8a6bc95fc1c0868eba632fae99ba3.tar.xz |
timeout: add --foreground to support interactive commands
Or more accurately, commands not started from the shell prompt,
that are interactive, or need to receive Ctrl-C etc. from the terminal.
* doc/coreutils.texi (timeout invocation): Document --foreground.
* src/timeout.c (main): Set the foreground flag and don't create
a separate group.
(cleanup): Only send a signal directly to the monitored command
when the foreground flag is set.
(usage): Describe --foreground.
* tests/misc/timeout-group: Add a new test.
* tests/Makefile.am: Reference new test.
NEWS: Mention the new option.
Reported by Shay Shimony
Analysis by Alan Curry
Fix suggested by Paul Eggert
Diffstat (limited to 'gnulib-tests')
0 files changed, 0 insertions, 0 deletions