diff options
author | Karel Zak | 2013-10-11 10:51:59 +0200 |
---|---|---|
committer | Karel Zak | 2013-10-11 10:51:59 +0200 |
commit | d4f0f1ccadb9db42fd421ebed53a578c542236a0 (patch) | |
tree | 8e18163d9b7ad20aed00b7a16c934f39530370c6 /libmount/src/context.c | |
parent | libmount: Fix typo in comment (diff) | |
download | kernel-qcow2-util-linux-d4f0f1ccadb9db42fd421ebed53a578c542236a0.tar.gz kernel-qcow2-util-linux-d4f0f1ccadb9db42fd421ebed53a578c542236a0.tar.xz kernel-qcow2-util-linux-d4f0f1ccadb9db42fd421ebed53a578c542236a0.zip |
libmount: fix mnt_context_is_child() comment
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/context.c')
-rw-r--r-- | libmount/src/context.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libmount/src/context.c b/libmount/src/context.c index 04eb2861c..5a88bcdcc 100644 --- a/libmount/src/context.c +++ b/libmount/src/context.c @@ -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; } |