]> git.ozlabs.org Git - ccan/blobdiff - ccan/pipecmd/_info
pipecmd: add stderr fd arg.
[ccan] / ccan / pipecmd / _info
index 1af377bf757bfcffefbed3e1901405e3a06e5600..4621d72fc3b94d78192a8eb33fb9bec60309a600 100644 (file)
@@ -31,7 +31,7 @@
  *             write(STDOUT_FILENO, "hello world\n", 12);
  *             exit(0);
  *     }
- *     child = pipecmd(&outputfd, NULL, argv[0], "ignoredarg", NULL);
+ *     child = pipecmd(&outputfd, NULL, NULL, argv[0], "ignoredarg", NULL);
  *     if (child < 0)
  *             err(1, "Creating child");
  *     if (read(outputfd, input, sizeof(input)) != sizeof(input))