]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - man/sd_bus_set_exit_on_disconnect.xml
man: s/dash/mdash/
[thirdparty/systemd.git] / man / sd_bus_set_exit_on_disconnect.xml
index 97e0e03fcf2f63700c59d834a65e6cdcee080cee..a694aef4f24e7181c05181a1d5c41470d2e48c83 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version='1.0'?>
 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
   "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
-<!-- SPDX-License-Identifier: LGPL-2.1+ -->
+<!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
 
 <refentry id="sd_bus_set_exit_on_disconnect"
           xmlns:xi="http://www.w3.org/2001/XInclude">
   <refsect1>
     <title>Return Value</title>
 
-    <para>On success, <function>sd_bus_set_close_on_exit()</function> returns a non-negative
+    <para>On success, <function>sd_bus_set_exit_on_disconnect()</function> returns a non-negative
     integer. On failure, it returns a negative errno-style error code.</para>
 
-    <para><function>sd_bus_get_close_on_exit()</function> returns a positive integer if the exit on
-    disconnect behavior is enabled. Otherwise, it returns zero.</para>
+    <para><function>sd_bus_get_exit_on_disconnect()</function> returns a positive integer if the
+    exit on disconnect behavior is enabled. Otherwise, it returns zero.</para>
 
     <refsect2>
       <title>Errors</title>
       <para>Returned errors may indicate the following problems:</para>
 
       <variablelist>
+        <varlistentry>
+          <term><constant>-EINVAL</constant></term>
+
+          <listitem><para>A required parameter was <constant>NULL</constant>.</para></listitem>
+        </varlistentry>
+
+        <varlistentry>
+          <term><constant>-ENOPKG</constant></term>
+
+          <listitem><para>The bus object could not be resolved.</para></listitem>
+        </varlistentry>
+
         <varlistentry>
           <term><constant>-ECHILD</constant></term>