소스 검색

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 년 전
부모
커밋
c303f55b60
2개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  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;
     String home;
     char ttyname[32];
     char ttyname[32];
     char hostname[32];
     char hostname[32];
-    pid_t sid;
     uid_t uid;
     uid_t uid;
     struct termios termios;
     struct termios termios;
     struct termios default_termios;
     struct termios default_termios;

+ 0 - 1
Shell/main.cpp

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