]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: document udevadm lock's exit code
authorUlrich Ölmann <u.oelmann@pengutronix.de>
Thu, 21 Jul 2022 12:04:49 +0000 (14:04 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 22 Jul 2022 11:04:14 +0000 (20:04 +0900)
man/udevadm.xml

index ba80e623829c8d4bec7e205b744d23559e3e62d5..47556ee9b365a69623eca43895bcb5742de5802d 100644 (file)
       <para><command>udevadm lock</command> takes an (advisory) exclusive lock(s) on a block device (or
       multiple thereof), as per <ulink url="https://systemd.io/BLOCK_DEVICE_LOCKING">Locking Block Device
       Access</ulink> and invokes a program with the lock(s) taken. When the invoked program exits the lock(s)
-      are automatically released.</para>
+      are automatically released and its return value is propagated as exit code of <command>udevadm
+      lock</command>.</para>
 
       <para>This tool is in particular useful to ensure that
       <citerefentry><refentrytitle>systemd-udevd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>