mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +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);
|
VIR_WARN("Executing %s", vm->def->emulator);
|
||||||
virCommandSetPreExecHook(cmd, qemudSecurityHook, &hookData);
|
virCommandSetPreExecHook(cmd, qemudSecurityHook, &hookData);
|
||||||
|
|
||||||
|
if (stdin_fd != -1)
|
||||||
virCommandSetInputFD(cmd, stdin_fd);
|
virCommandSetInputFD(cmd, stdin_fd);
|
||||||
|
|
||||||
virCommandSetOutputFD(cmd, &logfile);
|
virCommandSetOutputFD(cmd, &logfile);
|
||||||
virCommandSetErrorFD(cmd, &logfile);
|
virCommandSetErrorFD(cmd, &logfile);
|
||||||
virCommandNonblockingFDs(cmd);
|
virCommandNonblockingFDs(cmd);
|
||||||
|
Loading…
Reference in New Issue
Block a user