Penguin
Annotated edit history of Sessions version 2, including all changes. View license author blame.
Rev Author # Line
2 IanMcDonald 1 A Session is a collection of ProcessGroup~s. A newly created process joins the session of its creator. In normal operation the login shell creates a new session and all processes are members of that session. The login shell is the Session Leader.
1 BenStaz 2
3 Lets take a look at the SID's (Session ID's) of processes belonging to two separate ssh sessions on the same machine.
4
5 <verbatim>
6 bss7@xxxxxx:~$ ps -jfu bss7
7 UID PID PPID PGID SID C STIME TTY TIME CMD
8 bss7 5595 5520 5595 5595 0 18:19 pts/70 00:00:00 -bash
9 bss7 6632 5595 6632 5595 0 18:20 pts/70 00:00:00 ping 192.168.1.1
10
11 bss7 6852 6851 6852 6852 0 18:20 pts/83 00:00:00 -bash
12 bss7 9954 6852 9954 6852 1 18:24 pts/83 00:00:00 vim
13 bss7 9993 6852 9993 6852 0 18:24 pts/83 00:00:00 ps -jfu bss7
14 </verbatim>