Re: Our /bin/sh and process group IDs
- In reply to: Jilles Tjoelker : "Re: Our /bin/sh and process group IDs"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 28 Mar 2022 10:29:10 UTC
On Saturday, March 26, 2022 8:39:50 PM CEST Jilles Tjoelker wrote: Hello Jilles, > This appears to be a gray area, and the exact behaviour varies across > shells. For example, with stty tostop in effect, > [...] > > I think it is definitely undesirable for set -m to have an effect > across multiple levels of subshells by default, since it makes the > innermost processes immediately escape from the outer process group > supervision again. > > As it is now, FreeBSD sh has implemented this by ignoring set -m from > a process other than the first process Right. Thanks for those interesting examples & explanations. > A second workaround is to start a new instance of sh. Yep ! Thanks again, -- Ganael LAPLANCHE <ganael.laplanche@martymac.org> http://www.martymac.org | http://contribs.martymac.org FreeBSD: martymac <martymac@FreeBSD.org>, http://www.FreeBSD.org