From: Ma Xinjian via ltp <ltp@lists.linux.it>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] fork13: Fix the doc
Date: Tue, 18 Feb 2025 17:43:02 +0800 [thread overview]
Message-ID: <20250218094302.956853-1-maxj.fnst@fujitsu.com> (raw)
Previously, the use of "-" would cause "Race Description" to be misinterpreted as a subsection.
Add a blank line to avoid it and use :: to keep the description as origin text.
Signed-off-by: Ma Xinjian <maxj.fnst@fujitsu.com>
---
testcases/kernel/syscalls/fork/fork13.c | 27 +++++++++++++------------
1 file changed, 14 insertions(+), 13 deletions(-)
diff --git a/testcases/kernel/syscalls/fork/fork13.c b/testcases/kernel/syscalls/fork/fork13.c
index 3da698e33..9e07c9d4f 100644
--- a/testcases/kernel/syscalls/fork/fork13.c
+++ b/testcases/kernel/syscalls/fork/fork13.c
@@ -15,21 +15,22 @@
* implementation. Furthermore, many shell scripts assume that pid
* numbers will not be used for some length of time.
*
- * [Race Description]
- * ---------------------------------------------------------------------
- * A B
+ * **Race Description** ::
*
- * // pid == offset == n // pid == offset == n + 1
- * test_and_set_bit(offset, map->page)
- * test_and_set_bit(offset, map->page);
- * pid_ns->last_pid = pid;
- * pid_ns->last_pid = pid;
- * // pid == n + 1 is freed (wait())
+ * ---------------------------------------------------------------------
+ * A B
*
- * // Next fork()...
- * last = pid_ns->last_pid; // == n
- * pid = last + 1;
- * ---------------------------------------------------------------------
+ * // pid == offset == n // pid == offset == n + 1
+ * test_and_set_bit(offset, map->page)
+ * test_and_set_bit(offset, map->page);
+ * pid_ns->last_pid = pid;
+ * pid_ns->last_pid = pid;
+ * // pid == n + 1 is freed (wait())
+ *
+ * // Next fork()...
+ * last = pid_ns->last_pid; // == n
+ * pid = last + 1;
+ * ---------------------------------------------------------------------
*/
#include <sys/types.h>
--
2.47.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next reply other threads:[~2025-02-18 9:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-18 9:43 Ma Xinjian via ltp [this message]
2025-02-18 12:17 ` [LTP] [PATCH] fork13: Fix the doc Petr Vorel
2025-02-19 5:20 ` [LTP] [PATCH v2] " Ma Xinjian via ltp
2025-02-19 8:55 ` Petr Vorel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250218094302.956853-1-maxj.fnst@fujitsu.com \
--to=ltp@lists.linux.it \
--cc=maxj.fnst@fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox