mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
qemu: Don't try to set input FD to -1
This commit is contained in:
parent
45ef4d5e8a
commit
ccf2d0847b
@ -4091,7 +4091,10 @@ static int qemudStartVMDaemon(virConnectPtr conn,
|
||||
|
||||
VIR_WARN("Executing %s", vm->def->emulator);
|
||||
virCommandSetPreExecHook(cmd, qemudSecurityHook, &hookData);
|
||||
virCommandSetInputFD(cmd, stdin_fd);
|
||||
|
||||
if (stdin_fd != -1)
|
||||
virCommandSetInputFD(cmd, stdin_fd);
|
||||
|
||||
virCommandSetOutputFD(cmd, &logfile);
|
||||
virCommandSetErrorFD(cmd, &logfile);
|
||||
virCommandNonblockingFDs(cmd);
|
||||
|
Loading…
Reference in New Issue
Block a user