Skip to content

Commit

Permalink
Shell: Don't start a new session in every new shell
Browse files Browse the repository at this point in the history
The session should be started at a higher level, i.e the Terminal app.
  • Loading branch information
awesomekling committed Jan 25, 2020
1 parent f309381 commit c303f55
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion Shell/GlobalState.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion Shell/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c303f55

Please sign in to comment.