提交 049ff4e5 编写于 作者: D Daniel P. Berrange

Set close-on-exec flag for signal pipe

上级 e266ded2
Wed Feb 20 10:42:27 EST 2008 Daniel P. Berrange <berrange@redhat.com>
* qemud/qemud.c: Set close-on-exec flag for signal pipe
Wed Feb 20 10:39:27 EST 2008 Daniel P. Berrange <berrange@redhat.com>
* configure.in: Added checks for LVM tools
......
......@@ -2089,7 +2089,9 @@ int main(int argc, char **argv) {
if (pipe(sigpipe) < 0 ||
qemudSetNonBlock(sigpipe[0]) < 0 ||
qemudSetNonBlock(sigpipe[1]) < 0) {
qemudSetNonBlock(sigpipe[1]) < 0 ||
qemudSetCloseExec(sigpipe[0]) < 0 ||
qemudSetCloseExec(sigpipe[1]) < 0) {
qemudLog(QEMUD_ERR, _("Failed to create pipe: %s"),
strerror(errno));
goto error1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册