git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] run-command documentation: add 4 missing slashes

From
Miklos Vajna <vmiklos@frugalware.org>
Date
Jun 14, 2008, 01:01 UTC
Message-ID
<1213405319-25256-1-git-send-email-vmiklos@frugalware.org>

When initializing the struct async and struct child_process structures, the documentation suggested "clearing" the structure with '0' instead of '\0'.

Also asciidoc would parse '\0' as a markup, changing it to \'0' prevents this.

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
---
 Documentation/technical/api-run-command.txt |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/technical/api-run-command.txt b/Documentation/technical/api-run-command.txt
index c364a22..6591db9 100644
--- a/Documentation/technical/api-run-command.txt
+++ b/Documentation/technical/api-run-command.txt
@@ -63,7 +63,7 @@ command to run in a sub-process.
 
 The caller:
 
-1. allocates and clears (memset(&chld, '0', sizeof(chld));) a
+1. allocates and clears (memset(&chld, \'\0', sizeof(chld));) a
    struct child_process variable;
 2. initializes the members;
 3. calls start_command();
@@ -136,7 +136,7 @@ to produce output that the caller reads.
 
 The caller:
 
-1. allocates and clears (memset(&asy, '0', sizeof(asy));) a
+1. allocates and clears (memset(&asy, \'\0', sizeof(asy));) a
    struct async variable;
 2. initializes .proc and .data;
 3. calls start_async();
-- 
1.5.6.rc2.dirty
Message 1 of 1 in “run-command documentation: add 4 missing slashes”
  1. run-command documentation: add 4 missing slashesMiklos Vajna, Jun 14, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.