From 711364049338677a8792285f0c38c039344931ed Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 26 Oct 2023 18:45:33 +0200 Subject: fd-uitl: rename PIPE_EBADF → EBADF_PAIR, and add EBADF_TRIPLET MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/coredump/coredump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/coredump/coredump.c') 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, -- cgit v1.2.3