Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
b3ad4985
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,发现更多精彩内容 >>
提交
b3ad4985
编写于
5月 21, 1999
作者:
T
Tom Lane
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Report strerror() rather than errno in low-level backend libpq
failure messages.
上级
9a6184de
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
9 deletion
+12
-9
src/backend/libpq/pqcomm.c
src/backend/libpq/pqcomm.c
+12
-9
未找到文件。
src/backend/libpq/pqcomm.c
浏览文件 @
b3ad4985
...
...
@@ -28,7 +28,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pqcomm.c,v 1.7
0 1999/05/10 16:10:34 momjian
Exp $
* $Id: pqcomm.c,v 1.7
1 1999/05/21 01:25:06 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -196,8 +196,8 @@ StreamServerPort(char *hostName, short portName, int *fdP)
if
((
fd
=
socket
(
family
,
SOCK_STREAM
,
0
))
<
0
)
{
snprintf
(
PQerrormsg
,
ERROR_MSG_LENGTH
,
"FATAL: StreamServerPort: socket() failed: errno=%d
\n
"
,
errno
);
"FATAL: StreamServerPort: socket() failed: %s
\n
"
,
strerror
(
errno
)
);
fputs
(
PQerrormsg
,
stderr
);
pqdebug
(
"%s"
,
PQerrormsg
);
return
STATUS_ERROR
;
...
...
@@ -211,8 +211,8 @@ StreamServerPort(char *hostName, short portName, int *fdP)
sizeof
(
one
)))
==
-
1
)
{
snprintf
(
PQerrormsg
,
ERROR_MSG_LENGTH
,
"FATAL: StreamServerPort: setsockopt (SO_REUSEADDR) failed: errno=%d
\n
"
,
errno
);
"FATAL: StreamServerPort: setsockopt(SO_REUSEADDR) failed: %s
\n
"
,
strerror
(
errno
)
);
fputs
(
PQerrormsg
,
stderr
);
pqdebug
(
"%s"
,
PQerrormsg
);
return
STATUS_ERROR
;
...
...
@@ -265,8 +265,8 @@ StreamServerPort(char *hostName, short portName, int *fdP)
if
(
err
<
0
)
{
snprintf
(
PQerrormsg
,
ERROR_MSG_LENGTH
,
"FATAL: StreamServerPort: bind() failed: errno=%d
\n
"
,
errno
);
pqdebug
(
"%s"
,
PQerrormsg
);
"FATAL: StreamServerPort: bind() failed: %s
\n
"
,
strerror
(
errno
)
);
strcat
(
PQerrormsg
,
"
\t
Is another postmaster already running on that port?
\n
"
);
if
(
family
==
AF_UNIX
)
...
...
@@ -281,6 +281,7 @@ StreamServerPort(char *hostName, short portName, int *fdP)
strcat
(
PQerrormsg
,
"
\t
If not, wait a few seconds and retry.
\n
"
);
}
fputs
(
PQerrormsg
,
stderr
);
pqdebug
(
"%s"
,
PQerrormsg
);
return
STATUS_ERROR
;
}
...
...
@@ -441,7 +442,8 @@ pq_recvbuf(void)
* if we have a hard communications failure ...
* So just write the message to the postmaster log.
*/
fprintf
(
stderr
,
"pq_recvbuf: recv() failed, errno=%d
\n
"
,
errno
);
fprintf
(
stderr
,
"pq_recvbuf: recv() failed: %s
\n
"
,
strerror
(
errno
));
return
EOF
;
}
if
(
r
==
0
)
...
...
@@ -609,7 +611,8 @@ pq_flush(void)
* tries to write to the client, which would cause a recursive
* flush attempt! So just write it out to the postmaster log.
*/
fprintf
(
stderr
,
"pq_flush: send() failed, errno %d
\n
"
,
errno
);
fprintf
(
stderr
,
"pq_flush: send() failed: %s
\n
"
,
strerror
(
errno
));
/* We drop the buffered data anyway so that processing
* can continue, even though we'll probably quit soon.
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录