2010-03-28 22:10:10 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 08:40:37 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-06-20 22:25:43 +00:00
|
|
|
<refentry xml:id="function.posix-getpgid" xmlns="http://docbook.org/ns/docbook">
|
2007-02-04 02:47:39 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>posix_getpgid</refname>
|
|
|
|
<refpurpose>Get process group id for job control</refpurpose>
|
|
|
|
</refnamediv>
|
2007-02-04 02:47:57 +00:00
|
|
|
|
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
2007-02-04 02:47:39 +00:00
|
|
|
<methodsynopsis>
|
|
|
|
<type>int</type><methodname>posix_getpgid</methodname>
|
|
|
|
<methodparam><type>int</type><parameter>pid</parameter></methodparam>
|
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
|
|
|
Returns the process group identifier of the process
|
2009-12-08 06:29:59 +00:00
|
|
|
<parameter>pid</parameter>&return.falseforfailure;.
|
2007-02-04 02:47:39 +00:00
|
|
|
</para>
|
2007-02-04 02:47:57 +00:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="parameters">
|
|
|
|
&reftitle.parameters;
|
2007-02-04 02:47:39 +00:00
|
|
|
<para>
|
2007-02-04 02:47:57 +00:00
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>pid</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The process id.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2007-02-04 02:47:39 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
2007-02-04 02:47:57 +00:00
|
|
|
|
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
|
|
|
<para>
|
2007-05-03 18:03:24 +00:00
|
|
|
Returns the identifier, as an <type>integer</type>.
|
2007-02-04 02:47:57 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
2007-05-03 18:03:24 +00:00
|
|
|
<refsect1 role="examples">
|
|
|
|
&reftitle.examples;
|
|
|
|
<para>
|
|
|
|
<example>
|
|
|
|
<title>Example use of <function>posix_getpgid</function></title>
|
|
|
|
<programlisting role="php">
|
|
|
|
<![CDATA[
|
|
|
|
<?php
|
2007-07-10 09:41:31 +00:00
|
|
|
$pid = posix_getppid();
|
|
|
|
echo posix_getpgid($pid); //35
|
2007-05-03 18:03:24 +00:00
|
|
|
?>
|
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
</example>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
2007-05-08 03:47:42 +00:00
|
|
|
<refsect1 role="notes">
|
|
|
|
&reftitle.notes;
|
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
This is a not POSIX function, but is common on BSD and System V
|
2007-06-08 02:23:26 +00:00
|
|
|
systems. If the system does not support this function, then it
|
|
|
|
will not be included at compile time. This may be checked with
|
|
|
|
<function>function_exists</function>.
|
2007-05-08 03:47:42 +00:00
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
</refsect1>
|
|
|
|
|
2007-05-03 18:03:24 +00:00
|
|
|
<refsect1 role="seealso">
|
|
|
|
&reftitle.seealso;
|
|
|
|
<para>
|
|
|
|
<simplelist>
|
|
|
|
<member><function>posix_getppid</function></member>
|
|
|
|
<member>man page SETPGID(2)</member>
|
|
|
|
</simplelist>
|
|
|
|
</para>
|
2007-02-04 02:47:57 +00:00
|
|
|
</refsect1>
|
|
|
|
|
2007-02-04 02:47:39 +00:00
|
|
|
</refentry>
|
2002-04-15 00:12:54 +00:00
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2002-04-15 00:12:54 +00:00
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|