diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2026-07-21 11:18:21 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2026-07-21 11:18:21 -0400 |
| commit | df1e0af03db13339add48a9bc6350eedb30775ff (patch) | |
| tree | 42ab1dacb3cedec4f298fd627fa77d152ea8198e /snag/pkg_db.c | |
| parent | 8b82a228ef754778caec172f5882e80ae57f536b (diff) | |
argument parsing and subcommands
Diffstat (limited to 'snag/pkg_db.c')
| -rw-r--r-- | snag/pkg_db.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
