]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: fix mnt_context_is_child() comment
authorKarel Zak <kzak@redhat.com>
Fri, 11 Oct 2013 08:51:59 +0000 (10:51 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 11 Oct 2013 08:51:59 +0000 (10:51 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context.c

index 04eb2861c57c731655d01baa8999688c590e342f..5a88bcdccd2e132a93061c4f65686a95b308597f 100644 (file)
@@ -383,10 +383,13 @@ int mnt_context_is_parent(struct libmnt_context *cxt)
  * mnt_context_is_child:
  * @cxt: mount context
  *
- * Return: 1 if mount -F enabled and the current context is child, or 0
+ * Return: 1 f the current context is child, or 0
  */
 int mnt_context_is_child(struct libmnt_context *cxt)
 {
+       /* See mnt_fork_context(), the for fork flag is always disabled
+        * for children to avoid recursive forking.
+        */
        return !mnt_context_is_fork(cxt) && cxt->pid;
 }