mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
Ensure spawned children have a stderr/out set to /dev/null if requested
This commit is contained in:
parent
89c5ce4dcd
commit
bf5343d233
@ -376,6 +376,8 @@ __virExec(virConnectPtr conn,
|
||||
} else {
|
||||
childout = *outfd;
|
||||
}
|
||||
} else {
|
||||
childout = null;
|
||||
}
|
||||
|
||||
if (errfd != NULL) {
|
||||
@ -403,6 +405,8 @@ __virExec(virConnectPtr conn,
|
||||
} else {
|
||||
childerr = *errfd;
|
||||
}
|
||||
} else {
|
||||
childerr = null;
|
||||
}
|
||||
|
||||
if ((pid = fork()) < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user