chiark / gitweb /
util: replace close_pipe() with new safe_close_pair()
[elogind.git] / src / machine / machinectl.c
index d812ef2600dcd08e30f344f1c5f5b17c6258336a..6337aa274fd5ada55986abecc00e3b053e43fb9a 100644 (file)
@@ -412,7 +412,7 @@ static int terminate_machine(sd_bus *bus, char **args, unsigned n) {
 }
 
 static int openpt_in_namespace(pid_t pid, int flags) {
-        _cleanup_close_pipe_ int pair[2] = { -1, -1 };
+        _cleanup_close_pair_ int pair[2] = { -1, -1 };
         _cleanup_close_ int pidnsfd = -1, mntnsfd = -1, rootfd = -1;
         union {
                 struct cmsghdr cmsghdr;