Shell: Don't start a new session in every new shell

The session should be started at a higher level, i.e the Terminal app.
This commit is contained in:
Andreas Kling 2020-01-25 14:51:23 +01:00
parent f309381d4e
commit c303f55b60
Notes: sideshowbarker 2024-07-19 09:50:10 +09:00
2 changed files with 0 additions and 2 deletions

View file

@ -36,7 +36,6 @@ struct GlobalState {
String home;
char ttyname[32];
char hostname[32];
pid_t sid;
uid_t uid;
struct termios termios;
struct termios default_termios;

View file

@ -877,7 +877,6 @@ int main(int argc, char** argv)
}
g.uid = getuid();
g.sid = setsid();
tcsetpgrp(0, getpgrp());
tcgetattr(0, &g.default_termios);
g.termios = g.default_termios;