From 3d94f76c99da13e5603831d0b278f8c8c21bcb02 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 24 Mar 2014 03:22:44 +0100 Subject: util: replace close_pipe() with new safe_close_pair() safe_close_pair() is more like safe_close(), except that it handles pairs of fds, and doesn't make and misleading allusion, as it works similarly well for socketpairs() as for pipe()s... --- src/fsck/fsck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fsck') diff --git a/src/fsck/fsck.c b/src/fsck/fsck.c index f60cc1d912..18f2acaa49 100644 --- a/src/fsck/fsck.c +++ b/src/fsck/fsck.c @@ -374,7 +374,7 @@ int main(int argc, char *argv[]) { touch("/run/systemd/quotacheck"); finish: - close_pipe(progress_pipe); + safe_close_pair(progress_pipe); return r; } -- cgit v1.2.3-54-g00ecf