On 7/18/23 11:50 PM, Earl Chew wrote:
Interestingly dash/ash does not exhibit this behaviour. Looking at the
implementation since 1994 shows that it issues SIGCONT unconditionally
after TIOCSPGRP:
https://svnweb.freebsd.org/base/head/bin/sh/jobs.c?revision=1556&view=markup#l175
https://svnweb.freebsd.org/base/head/bin/sh/jobs.c?revision=1556&view=markup#l207
The prior art suggested by dash/ash is that bash should send SIGCONT
unconditionally after tcsetpgrp() when moving a program to the
foreground.
Thanks for the report. Let's try it, since sending SIGCONT to a process
should not have any negative side effects.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/