Steffen Nurpmeso wrote in
<20230117202333.p9gnd%stef...@sdaoden.eu>:
...
|Forget about this please, bash shows the same problems, but
|i still have not understood why.
|(Has nothing to do with monitor mode.)
Signal cums and causes childs to think they can go.
Likely.
Sorry for the noise.
Hello.
Imagine this file:
#!/sbin/busybox.static ash
#set -m
(
echo >&2 "inner shell has: $(ps -o pid,pgid $$ | tail -n1)"
) &
echo >&2 "outer shell has: $(ps -o pid,pgid $$ | tail -n1)"
echo >&2 "x is $$, job is $!: $(ps -o pid,pgid $! | tail -n1)"
If in a t2.sh and run it
Hello..
Steffen Nurpmeso wrote in
<20230117185938.u5tc3%stef...@sdaoden.eu>:
...
| #?0|kent:tmp$ ./t2.sh
| inner shell has: 18587 18587
| outer shell has: 18587 18587
| x is 18587, job is 18588: 18588 18587
| #?0|kent:tmp$ ./t2.sh
| inner shell has: 18621 18621
| outer shell has: