Ensure spawned children have a stderr/out set to /dev/null if requested

This commit is contained in:
Daniel P. Berrange 2009-07-06 18:43:38 +01:00
parent 89c5ce4dcd
commit bf5343d233

View File

@ -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) {