diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-11-02 12:56:51 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-11-02 12:56:51 +0100 |
commit | d8f0dd6f3b36987c2a8021e16341dda16cbb7ab1 (patch) | |
tree | 29f86d44683f9c11c51d8ef8a4e29da3c7bdd906 /Userland/sh.cpp | |
parent | 05565bad5803fd09c3fb003f92f620b5e6ae11b1 (diff) | |
download | serenity-d8f0dd6f3b36987c2a8021e16341dda16cbb7ab1.zip |
Start working on sessions and process groups.
Diffstat (limited to 'Userland/sh.cpp')
-rw-r--r-- | Userland/sh.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/sh.cpp b/Userland/sh.cpp index 264a748cf7..7ad8361153 100644 --- a/Userland/sh.cpp +++ b/Userland/sh.cpp @@ -14,6 +14,7 @@ struct GlobalState { const char* ttyname_short { nullptr }; char ttyname[32]; char hostname[32]; + pid_t sid; }; static GlobalState* g; @@ -171,6 +172,7 @@ static void greeting() int main(int, char**) { g = new GlobalState; + g->sid = setsid(); int rc = gethostname(g->hostname, sizeof(g->hostname)); if (rc < 0) perror("gethostname"); |