* char input[12];
*
* if (argc == 2) {
- * write(STDOUT_FILENO, "hello world\n", 12);
+ * if (write(STDOUT_FILENO, "hello world\n", 12) != 12)
+ * exit(1);
* 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))