mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-12 01:46:46 +02:00
Shell: Make a new session at start if there's no active session
This commit is contained in:
committed by
Andreas Kling
parent
21f513fe0f
commit
a43d9c4fe0
Notes:
sideshowbarker
2024-07-19 02:20:34 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/a43d9c4fe06 Pull-request: https://github.com/SerenityOS/serenity/pull/3533 Issue: https://github.com/SerenityOS/serenity/issues/3530
@@ -733,8 +733,10 @@ RefPtr<Job> Shell::run_command(const AST::Command& command)
|
||||
perror("setpgid");
|
||||
|
||||
if (!m_is_subshell) {
|
||||
tcsetpgrp(STDOUT_FILENO, pgid);
|
||||
tcsetpgrp(STDIN_FILENO, pgid);
|
||||
if (tcsetpgrp(STDOUT_FILENO, pgid) != 0)
|
||||
perror("tcsetpgrp(OUT)");
|
||||
if (tcsetpgrp(STDIN_FILENO, pgid) != 0)
|
||||
perror("tcsetpgrp(IN)");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user