From c303f55b6069a6ab9fd468bf7b36bceaf4e5cd47 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 25 Jan 2020 14:51:23 +0100 Subject: [PATCH] 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. --- Shell/GlobalState.h | 1 - Shell/main.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/Shell/GlobalState.h b/Shell/GlobalState.h index 5860c98ed4..ede9c1990a 100644 --- a/Shell/GlobalState.h +++ b/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; diff --git a/Shell/main.cpp b/Shell/main.cpp index 4d0ae543e1..1f1bb44656 100644 --- a/Shell/main.cpp +++ b/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;