PID

The current process PID can be obtained from the special variable $$.