summaryrefslogtreecommitdiffstats
path: root/src/test/test-execute.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-10-26 18:45:33 +0200
committerLennart Poettering <lennart@poettering.net>2023-10-26 22:30:42 +0200
commit711364049338677a8792285f0c38c039344931ed (patch)
treed1d29243500304ccb0f284b4ccf485325a4931eb /src/test/test-execute.c
parentnspawn: Make parameter provided_mac a const for setup_veth() (diff)
downloadsystemd-711364049338677a8792285f0c38c039344931ed.tar.xz
systemd-711364049338677a8792285f0c38c039344931ed.zip
fd-uitl: rename PIPE_EBADF → EBADF_PAIR, and add EBADF_TRIPLET
We use it for more than just pipe() arrays. For example also for socketpair(). Hence let's give it a generic name. Also add EBADF_TRIPLET to mirror this for things like stdin/stdout/stderr arrays, which we use a bunch of times.
Diffstat (limited to 'src/test/test-execute.c')
-rw-r--r--src/test/test-execute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-execute.c b/src/test/test-execute.c
index 417e484fc9..6156c9caa7 100644
--- a/src/test/test-execute.c
+++ b/src/test/test-execute.c
@@ -585,7 +585,7 @@ static int find_libraries(const char *exec, char ***ret) {
_cleanup_(sd_event_source_unrefp) sd_event_source *sigchld_source = NULL;
_cleanup_(sd_event_source_unrefp) sd_event_source *stdout_source = NULL;
_cleanup_(sd_event_source_unrefp) sd_event_source *stderr_source = NULL;
- _cleanup_close_pair_ int outpipe[2] = PIPE_EBADF, errpipe[2] = PIPE_EBADF;
+ _cleanup_close_pair_ int outpipe[2] = EBADF_PAIR, errpipe[2] = EBADF_PAIR;
_cleanup_strv_free_ char **libraries = NULL;
_cleanup_free_ char *result = NULL;
pid_t pid;