Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Mar 2022 13:14:43 +0100
From:      Ganael Laplanche <ganael.laplanche@martymac.org>
To:        Eugene Grosbein <eugen@grosbein.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Our /bin/sh and process group IDs
Message-ID:  <3524693.ZKXgePsUey@dmc12.centralesupelec.fr>
In-Reply-To: <d3cc4ac9-0e3c-49d1-20fd-65d045a2b72f@grosbein.net>
References:  <48e49ad0-a12a-d10b-5867-da9736c6c1fd@martymac.org> <d3cc4ac9-0e3c-49d1-20fd-65d045a2b72f@grosbein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3524693.ZKXgePsUey>