Contents
Is the process ID always the same?
Except for the idle and so-called “system” processes; those PIDs are always the same within a version of Windows.
Can process ID change?
When you restart your computer the process ID’s (PID), will change, actually they can change even when using the computer.
What is the purpose of the session ID?
As session IDs are often used to identify a user that has logged into a website, they can be used by an attacker to hijack the session and obtain potential privileges. A session ID is usually a randomly generated string to decrease the probability of obtaining a valid one by means of a brute-force search.
What happens to the session ID of a process?
When you disown a process, the session id of the process is changed from the shell, so it will not respond to the hangup signal. This is one part of the process to become a daemon process. Most of the processes called from the window manager/graphical environment have the same session id as one of the startup programs.
What does the ID of a session leader mean?
A session leader is a process where session id == process id. This sounds contrived, but the session id is inherited by child processes. Some operations within UNIX/Linux operate on process sessions, for example, negating the process id when sending to the kill system call or command.
Where do daemon processes send their log messages?
Most user processes (daemons) call the syslog (3) function to generate log messages. This causes the message to be sent to the UNIX domain datagram socket /dev/log. A user process on this host or some other host that is connected to this host by a TCP/IP network, can send log messages to UDP port 514.
What are the different types of system daemons?
This section describes some common system daemons with the concepts of process groups, controlling terminals, and sessions as described in Chapter 9. The -a option shows the status of processes owned by others. The -x option shows processes that don’t have a controlling terminal.