[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: for loop goes to stopped job when Ctrl+C is pressed
From: |
Andreas Schwab |
Subject: |
Re: for loop goes to stopped job when Ctrl+C is pressed |
Date: |
Sun, 18 Dec 2022 10:45:07 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
On Dez 17 2022, ks1322 ks1322 wrote:
> When for loop output is piped to less and Ctrl+C is pressed, bash creates
> unexpected stopped job
That's because the process group receives SIGTTIN because less tries to
read from the terminal while it doesn't own it.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."