diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-10-26 18:45:33 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-10-26 22:30:42 +0200 |
commit | 711364049338677a8792285f0c38c039344931ed (patch) | |
tree | d1d29243500304ccb0f284b4ccf485325a4931eb /src/shutdown | |
parent | nspawn: Make parameter provided_mac a const for setup_veth() (diff) | |
download | systemd-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.c | 4 |
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; |