diff --git a/Applications/Terminal/main.cpp b/Applications/Terminal/main.cpp index 94b1c5903b2..d51ce1f2f30 100644 --- a/Applications/Terminal/main.cpp +++ b/Applications/Terminal/main.cpp @@ -69,8 +69,9 @@ static void run_command(int ptm_fd, String command) exit(1); } - // NOTE: It's okay if this fails. - (void)ioctl(0, TIOCNOTTY); + if (setsid() < 0) { + perror("setsid"); + } close(0); close(1);