summaryrefslogtreecommitdiffstats
path: root/src/shutdown
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/shutdown
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/shutdown')
-rw-r--r--src/shutdown/umount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shutdown/umount.c b/src/shutdown/umount.c
index 70585523ae..1a9b99d761 100644
--- a/src/shutdown/umount.c
+++ b/src/shutdown/umount.c
@@ -241,7 +241,7 @@ static void log_umount_blockers(const char *mnt) {
}
static int remount_with_timeout(MountPoint *m, bool last_try) {
- _cleanup_close_pair_ int pfd[2] = PIPE_EBADF;
+ _cleanup_close_pair_ int pfd[2] = EBADF_PAIR;
_cleanup_(sigkill_nowaitp) pid_t pid = 0;
int r;
@@ -297,7 +297,7 @@ static int remount_with_timeout(MountPoint *m, bool last_try) {
}
static int umount_with_timeout(MountPoint *m, bool last_try) {
- _cleanup_close_pair_ int pfd[2] = PIPE_EBADF;
+ _cleanup_close_pair_ int pfd[2] = EBADF_PAIR;
_cleanup_(sigkill_nowaitp) pid_t pid = 0;
int r;