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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <ganael.laplanche@xxxxxxxxxxxx>
http://www.martymac.org | http://contribs.martymac.org
FreeBSD: martymac <martymac@xxxxxxxxxxx>, http://www.FreeBSD.org




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux