- getpgrp PID
-
Returns the current process group for the specified PID. Use a PID of
0
to get the current process group for the current process. Will raise an exception if used on a machine that doesn't implement getpgrp(2). If PID is omitted, returns the process group of the current process. Note that the POSIX version of getpgrp does not accept a PID argument, so onlyPID==0
is truly portable.指定された PID の現在のプロセスグループを返します。 PID に
0
を与えるとカレントプロセスの指定となります。 getpgrp(2) を実装していないマシンで実行した場合には、例外が発生します。 PID を省略するとカレントプロセスのプロセスグループを返します。 POSIX 版の getpgrp は PID 引数を受け付けないので、PID==0
のみが完全に移植性があります。Portability issues: "getpgrp" in perlport.
移植性の問題: "getpgrp" in perlport。