Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
7a30b1fb
Commit
7a30b1fb
authored
Jun 30, 2005
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue fatal error if no TCP/IP sockets could be created
parent
117fde2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
src/backend/postmaster/postmaster.c
src/backend/postmaster/postmaster.c
+9
-2
No files found.
src/backend/postmaster/postmaster.c
View file @
7a30b1fb
...
...
@@ -37,7 +37,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.45
6 2005/06/29 22:51:55 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.45
7 2005/06/30 10:02:22 petere
Exp $
*
* NOTES
*
...
...
@@ -711,6 +711,7 @@ PostmasterMain(int argc, char *argv[])
char
*
rawstring
;
List
*
elemlist
;
ListCell
*
l
;
int
success
=
0
;
/* Need a modifiable copy of ListenAddresses */
rawstring
=
pstrdup
(
ListenAddresses
);
...
...
@@ -738,12 +739,18 @@ PostmasterMain(int argc, char *argv[])
(
unsigned
short
)
PostPortNumber
,
UnixSocketDir
,
ListenSocket
,
MAXLISTEN
);
if
(
status
!=
STATUS_OK
)
if
(
status
==
STATUS_OK
)
success
++
;
else
ereport
(
WARNING
,
(
errmsg
(
"could not create listen socket for
\"
%s
\"
"
,
curhost
)));
}
if
(
!
success
&&
list_length
(
elemlist
))
ereport
(
FATAL
,
(
errmsg
(
"could not create any TCP/IP sockets"
)));
list_free
(
elemlist
);
pfree
(
rawstring
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment