From df1e0af03db13339add48a9bc6350eedb30775ff Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Tue, 21 Jul 2026 11:18:21 -0400 Subject: argument parsing and subcommands --- snag/pkg_db.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'snag/pkg_db.c') diff --git a/snag/pkg_db.c b/snag/pkg_db.c index 032c089..a02fe93 100644 --- a/snag/pkg_db.c +++ b/snag/pkg_db.c @@ -62,7 +62,7 @@ bool load_package_info(char* pkgid, package_info_t* info) { if (pid == 0) { // child proc - // write my stdout to the pipe + // connect my stdout to the pipe close(pipefds[0]); dup2(pipefds[1], STDOUT_FILENO); close(pipefds[1]); @@ -121,7 +121,7 @@ void run_package_install(const package_info_t* info) { if (pid == 0) { // child proc - // write my stdout and stderr to the pipe + // connect my stdout and stderr to the pipe close(pipefds[0]); dup2(pipefds[1], STDOUT_FILENO); dup2(pipefds[1], STDERR_FILENO); -- cgit v1.2.3