qga: replace pipe() with g_unix_open_pipe(CLOEXEC)
Suggested-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
81badab381
commit
ed78331dda
@ -2529,7 +2529,7 @@ void qmp_guest_set_user_password(const char *username,
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (pipe(datafd) < 0) {
|
||||
if (!g_unix_open_pipe(datafd, FD_CLOEXEC, NULL)) {
|
||||
error_setg(errp, "cannot create pipe FDs");
|
||||
goto out;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user