mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue