Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
bda6e04b
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
bda6e04b
编写于
3月 15, 2004
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Check for EOF on pipe differs under win32, as it is based on a socket
implementation. Claudio Natoli
上级
f744c0f7
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
14 addition
and
3 deletion
+14
-3
src/backend/postmaster/pgstat.c
src/backend/postmaster/pgstat.c
+14
-3
未找到文件。
src/backend/postmaster/pgstat.c
浏览文件 @
bda6e04b
...
...
@@ -13,7 +13,7 @@
*
* Copyright (c) 2001-2003, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.6
0 2004/03/10 21:12:46
momjian Exp $
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.6
1 2004/03/15 16:21:37
momjian Exp $
* ----------
*/
#include "postgres.h"
...
...
@@ -1642,6 +1642,7 @@ pgstat_mainChild(PGSTAT_FORK_ARGS)
*/
int
nread
=
0
;
int
targetlen
=
sizeof
(
PgStat_MsgHdr
);
/* initial */
bool
pipeEOF
=
false
;
while
(
nread
<
targetlen
)
{
...
...
@@ -1652,13 +1653,23 @@ pgstat_mainChild(PGSTAT_FORK_ARGS)
{
if
(
errno
==
EINTR
)
continue
;
#ifdef WIN32
if
(
WSAGetLastError
()
==
WSAECONNRESET
)
/* EOF on the pipe! (win32 socket based implementation) */
{
pipeEOF
=
true
;
break
;
}
#endif
ereport
(
LOG
,
(
errcode_for_socket_access
(),
errmsg
(
"could not read from statistics collector pipe: %m"
)));
errmsg
(
"could not read from statistics collector pipe: %m"
)));
exit
(
1
);
}
if
(
len
==
0
)
/* EOF on the pipe! */
{
pipeEOF
=
true
;
break
;
}
nread
+=
len
;
if
(
nread
==
sizeof
(
PgStat_MsgHdr
))
{
...
...
@@ -1683,7 +1694,7 @@ pgstat_mainChild(PGSTAT_FORK_ARGS)
* EOF on the pipe implies that the buffer process exited.
* Fall out of outer loop.
*/
if
(
len
==
0
)
if
(
pipeEOF
)
break
;
/*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录