summaryrefslogtreecommitdiffstats
path: root/src/coredump/coredump.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/coredump/coredump.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/coredump/coredump.c')
-rw-r--r--src/coredump/coredump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c
index 40505e35f3..a67d425c14 100644
--- a/src/coredump/coredump.c
+++ b/src/coredump/coredump.c
@@ -1402,7 +1402,7 @@ static int can_forward_coredump(pid_t pid) {
static int forward_coredump_to_container(Context *context) {
_cleanup_close_ int pidnsfd = -EBADF, mntnsfd = -EBADF, netnsfd = -EBADF, usernsfd = -EBADF, rootfd = -EBADF;
- _cleanup_close_pair_ int pair[2] = PIPE_EBADF;
+ _cleanup_close_pair_ int pair[2] = EBADF_PAIR;
pid_t pid, child;
struct ucred ucred = {
.pid = context->pid,