module function Process.#pid

pid -> Integer[permalink][rdoc][edit]

カレントプロセスのプロセス ID を返します。変数 $$ の値と同じです。

[SEE_ALSO] getpid(2)