aboutsummaryrefslogtreecommitdiff
path: root/snag/pkg_db.c
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2026-07-21 11:18:21 -0400
committerJack Jamison <jackqjamison@gmail.com>2026-07-21 11:18:21 -0400
commitdf1e0af03db13339add48a9bc6350eedb30775ff (patch)
tree42ab1dacb3cedec4f298fd627fa77d152ea8198e /snag/pkg_db.c
parent8b82a228ef754778caec172f5882e80ae57f536b (diff)
argument parsing and subcommands
Diffstat (limited to 'snag/pkg_db.c')
-rw-r--r--snag/pkg_db.c4
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);