提交 55311d6c 编写于 作者: J Jim Meyering

src/virsh.c (vshCloseLogFile): Diagnose close/write failure.

上级 de4a8ce6
Wed Nov 28 14:21:47 CET 2007 Jim Meyering <meyering@redhat.com>
* src/virsh.c (vshCloseLogFile): Diagnose close/write failure.
Wed Nov 28 09:00:00 GMT 2007 Richard W.M. Jones <rjones@redhat.com>
* src/xm_internal.c, src/xm_internal.h: Added support for
......
......@@ -4643,7 +4643,9 @@ vshCloseLogFile(vshControl *ctl)
{
/* log file close */
if (ctl->log_fd >= 0) {
close(ctl->log_fd);
if (close(ctl->log_fd) < 0)
vshError(ctl, FALSE, _("%s: failed to write log file: %s")
ctl->logfile ? ctl->logfile : "?", strerror (errno));
ctl->log_fd = -1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册