Files
php-doc-ru/reference/posix/functions/posix-getsid.xml
Sergey Panteleev c7117a4dbb docs(ru): Updated to English revision
git-svn-id: https://svn.php.net/repository/phpdoc/ru/trunk@351276 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-06 06:24:16 +00:00

105 lines
2.9 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 86e6094e86b84a51d00ab217ac50ce8dde33d82a Maintainer: rjhdby Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.posix-getsid" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>posix_getsid</refname>
<refpurpose>Возвращает текущий SID процесса</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>posix_getsid</methodname>
<methodparam><type>int</type><parameter>pid</parameter></methodparam>
</methodsynopsis>
<para>
Возвращает идентификатор сессии процесса <parameter>pid</parameter>.
Сессионным идентификатором процесса является идентификатор процесса
лидера сеанса.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>pid</parameter></term>
<listitem>
<para>
Идентификатор процесса. Если установлено в 0, подразумевается
текущий процесс. Если передан некорректный <parameter>pid</parameter>, то
будет возвращено &false;. Также будет установлен номер ошибки, который можно
обработать с помощью функции <function>posix_get_last_error</function>.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Возвращает идентификатор как <type>int</type>.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Пример использования <function>posix_getsid</function></title>
<programlisting role="php">
<![CDATA[
<?php
$pid = posix_getpid();
echo posix_getsid($pid); //8805
?>
]]>
</programlisting>
</example>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member>
<function>posix_getpgid</function>
</member>
<member>
<function>posix_setsid</function>
</member>
<member>POSIX руководство GETSID(2)</member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- 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
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
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
-->