Re: [v2 PATCH] jobs: Allow monitor mode without a tty in non-interactive mode

Steffen Nurpmeso <[email protected]>
Newsgroups org.kernel.vger.dash
Message-ID <20240408225420.hz8nC3ly@steffen%sdaoden.eu>
Hello.

Sorry for the late response.

Herbert Xu wrote in
 <[email protected]>:
 |On Mon, Jan 30, 2023 at 10:15:40PM +0100, Steffen Nurpmeso wrote:
 |> This is a take-over of the FreeBSD bin/sh
 |> 
 |>   commit cd60e2c67d52e1f957841af19128c7227880743a
 |>   Author:     Jilles Tjoelker <[email protected]>
 |>   AuthorDate: 2014-09-04 21:48:33 +0000
 |>   Commit:     Jilles Tjoelker <[email protected]>
 |>   CommitDate: 2014-09-04 21:48:33 +0000
 |> 
 |>       sh: Allow enabling job control without a tty in non-interactive \
 |>       mode.
 |> 
 |>       If no tty is available, 'set -m' is still useful to put jobs \
 |>       in their own
 |>       process groups.
 ...
 |Thanks for the patch.  I've rewritten it to minimise the impact.

The patch is much smaller.

 |However, the end result should be fairly similar.
 |
 |Please test this and let me know if there are any issues.

Running the script with it has the desired result.

  ..
 --End of <[email protected]>

Ciao, and greetings from Germany,

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.