]> git.proxmox.com Git - qemu.git/blobdiff - posix-aio-compat.c
Don't leak file descriptors
[qemu.git] / posix-aio-compat.c
index 7f391c9373fb63141cd728e859efad438e4c5830..ac247e1e3b684fc117b3759301931750ee0e7b8f 100644 (file)
@@ -625,7 +625,7 @@ int paio_init(void)
     sigaction(SIGUSR2, &act, NULL);
 
     s->first_aio = NULL;
-    if (pipe(fds) == -1) {
+    if (qemu_pipe(fds) == -1) {
         fprintf(stderr, "failed to create pipe\n");
         return -1;
     }