mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 08:51:14 -03:00
Only donate term if we're interactive *and* have the terminal
As it turns out otherwise fish would hang when sddm starts it as the login shell.
Belongs to #7842.
(cherry picked from commit 7f7cfcf339)
This commit is contained in:
committed by
David Adam
parent
e31096d7ed
commit
92c28291df
@@ -1342,7 +1342,8 @@ void reader_init() {
|
|||||||
|
|
||||||
// Set up our fixed terminal modes once,
|
// Set up our fixed terminal modes once,
|
||||||
// so we don't get flow control just because we inherited it.
|
// so we don't get flow control just because we inherited it.
|
||||||
if (is_interactive_session()) {
|
if (is_interactive_session() &&
|
||||||
|
getpgrp() == tcgetpgrp(STDIN_FILENO)) {
|
||||||
term_donate(/* quiet */ true);
|
term_donate(/* quiet */ true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user