Re: Our /bin/sh and process group IDs

From: Ganael Laplanche <ganael.laplanche_at_martymac.org>
Date: Fri, 25 Mar 2022 12:14:43 UTC
On Friday, March 25, 2022 12:24:08 PM CET Eugene Grosbein wrote:

Hello Eugene,

Thanks for your anwser.

> Try "set -m" beforehand.

It is set, from within test_func () :

   set -m
   { /bin/sh -c 'sleep 1' ; } &

I would expect the line :

   { /bin/sh -c 'sleep 1' ; } &

to be forked in a new process group, which is not the case.

-- 
Ganael LAPLANCHE <ganael.laplanche@martymac.org>
http://www.martymac.org | http://contribs.martymac.org
FreeBSD: martymac <martymac@FreeBSD.org>, http://www.FreeBSD.org