From fa9277746ffc22b457d3c9cf96b91c5c73d5efc4 Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Fri, 21 Nov 2025 21:52:14 +0100 Subject: Rename the standard fds in process To not collide with the globals for stdin, stdout and stderr. --- src/dged/process-posix.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/dged/process-posix.c') diff --git a/src/dged/process-posix.c b/src/dged/process-posix.c index 7cfb29b..e5d5cf8 100644 --- a/src/dged/process-posix.c +++ b/src/dged/process-posix.c @@ -105,9 +105,9 @@ struct process_create_result process_create(char *const command[], close(stdout_write); close(stderr_write); - result->stdin = stdin_write; - result->stdout = stdout_read; - result->stderr = stderr_read; + result->stdin_ = stdin_write; + result->stdout_ = stdout_read; + result->stderr_ = stderr_read; result->id = (fd_t)pid; result->impl = NULL; } @@ -118,9 +118,9 @@ struct process_create_result process_create(char *const command[], } void process_destroy(struct process *p) { - close(p->stdin); - close(p->stdout); - close(p->stderr); + close(p->stdin_); + close(p->stdout_); + close(p->stderr_); } bool process_running(const struct process *p) { -- cgit v1.2.3