Browse Source

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.
Andreas Kling 5 năm trước cách đây
mục cha
commit
c303f55b60
2 tập tin đã thay đổi với 0 bổ sung2 xóa
  1. 0 1
      Shell/GlobalState.h
  2. 0 1
      Shell/main.cpp

+ 0 - 1
Shell/GlobalState.h

@@ -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;

+ 0 - 1
Shell/main.cpp

@@ -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;