mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
Shell: Build as part of Lagom as well
Bringing the Serenity Shell to your very own host system :^)
This commit is contained in:
parent
d2bdbc3e77
commit
639c1a1737
Notes:
sideshowbarker
2024-07-19 05:08:57 +09:00
Author: https://github.com/alimpfard
Commit: 639c1a1737
Pull-request: https://github.com/SerenityOS/serenity/pull/2542
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/bugaevc
5 changed files with 45 additions and 8 deletions
|
@ -423,7 +423,11 @@ RefPtr<Job> Shell::run_command(AST::Command& command)
|
|||
return nullptr;
|
||||
|
||||
pid_t child = fork();
|
||||
if (!child) {
|
||||
if (child < 0) {
|
||||
perror("fork");
|
||||
return nullptr;
|
||||
}
|
||||
if (child == 0) {
|
||||
setpgid(0, 0);
|
||||
tcsetpgrp(0, getpid());
|
||||
tcsetattr(0, TCSANOW, &default_termios);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue