mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 13:01:21 -03:00
More aggressively inherit pgrps from parent jobs
Prior to this fix, a job would only inherit a pgrp from its parent if the first command were external. There seems to be no reason for this restriction and this causes tcsetgrp() churn, potentially cuasing SIGTTIN. Switch to unconditionally inheriting a pgrp from parents. This should fix most of #5765, the only remaining question is tcsetpgrp from builtins.
This commit is contained in:
@@ -14,3 +14,13 @@ for {set x 0} {$x<15} {incr x} {
|
||||
# 'not' because we expect to have no jobs, in which case `jobs` will return false
|
||||
send_line "not jobs"
|
||||
expect_prompt "jobs: There are no jobs" {} unmatched { puts stderr "Should be no jobs" }
|
||||
|
||||
send_line "function inner ; command true ; end; function outer; inner; end"
|
||||
expect_prompt
|
||||
for {set x 0} {$x<15} {incr x} {
|
||||
send_line "outer | $fish_test_helper become_foreground_then_print_stderr ; or exit 1"
|
||||
expect_prompt "become_foreground_then_print_stderr done" {} unmatched { puts stderr "fish_test_helper become_foreground_then_print_stderr failed"}
|
||||
}
|
||||
|
||||
send_line "not jobs"
|
||||
expect_prompt "jobs: There are no jobs" {} unmatched { puts stderr "Should be no jobs" }
|
||||
|
||||
Reference in New Issue
Block a user