diff options
| author | Albert Cervin <albert@acervin.com> | 2025-11-21 21:52:14 +0100 |
|---|---|---|
| committer | Albert Cervin <albert@acervin.com> | 2025-11-21 21:52:14 +0100 |
| commit | fa9277746ffc22b457d3c9cf96b91c5c73d5efc4 (patch) | |
| tree | 4dc3a251580013efe2b91e428a295c5d8e8ed549 /src/dged/process-posix.c | |
| parent | 3940a20f62baf567cf31e1206adba050b477c9fa (diff) | |
| download | dged-fa9277746ffc22b457d3c9cf96b91c5c73d5efc4.tar.gz dged-fa9277746ffc22b457d3c9cf96b91c5c73d5efc4.tar.xz dged-fa9277746ffc22b457d3c9cf96b91c5c73d5efc4.zip | |
Rename the standard fds in process
To not collide with the <stdio.h> globals for stdin, stdout and stderr.
Diffstat (limited to 'src/dged/process-posix.c')
| -rw-r--r-- | src/dged/process-posix.c | 12 |
1 files changed, 6 insertions, 6 deletions
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) { |
