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

Ganael Laplanche <[email protected]>
Newsgroups org.kernel.vger.dash
Message-ID <[email protected]>
On 4/9/24 00:54, Steffen Nurpmeso wrote:

Hello Herbert, Steffen,

> Running the script with it has the desired result.

Sorry for the delay. Indeed, I can confirm it works like a charm:

$ cat test_pgid.sh
set -m
(
   sleep 1
) &
i=$!
echo "Main shell has: $(ps -o pid,pgid $$)"
echo "Sub-shell has: $(ps -o pid,pgid $i)"
wait $i

$ dash test_pgid.sh &
$ Main shell has:   PID  PGID
80074 80074
Sub-shell has:   PID  PGID
86666 86666
[1] + Done                       (sleep 1)
[1]   Done                    dash test_pgid.sh

As a consequence, fpsync[1] can now be started in the background, great!

Thanks a lot to both of you :)

Cheers,

Ganael.

[1] https://www.fpart.org/fpsync/

-- 
Ganael LAPLANCHE <[email protected]>
http://www.martymac.org | http://contribs.martymac.org
FreeBSD: martymac <[email protected]>, http://www.FreeBSD.org
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.