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
5b4fa959
Commit
5b4fa959
authored
Jan 29, 2007
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update process termination message to display signal number and name
from exec.c and postmaster.c.
parent
48ba3f57
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
src/backend/postmaster/postmaster.c
src/backend/postmaster/postmaster.c
+4
-5
src/port/exec.c
src/port/exec.c
+9
-4
No files found.
src/backend/postmaster/postmaster.c
View file @
5b4fa959
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.51
5 2007/01/28 06:32:03 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.51
6 2007/01/29 20:17:40 momjian
Exp $
*
*
* NOTES
* NOTES
*
*
...
@@ -2436,11 +2436,10 @@ LogChildExit(int lev, const char *procname, int pid, int exitstatus)
...
@@ -2436,11 +2436,10 @@ LogChildExit(int lev, const char *procname, int pid, int exitstatus)
/*------
/*------
translator: %s is a noun phrase describing a child process, such as
translator: %s is a noun phrase describing a child process, such as
"server process" */
"server process" */
(
errmsg
(
"%s (PID %d) was terminated by signal %
s (%d)
"
,
(
errmsg
(
"%s (PID %d) was terminated by signal %
d: %s
"
,
procname
,
pid
,
procname
,
pid
,
WTERMSIG
(
exitstatus
),
WTERMSIG
(
exitstatus
)
<
NSIG
?
WTERMSIG
(
exitstatus
)
<
NSIG
?
sys_siglist
[
WTERMSIG
(
exitstatus
)]
:
"(unknown)"
,
sys_siglist
[
WTERMSIG
(
exitstatus
)]
:
"(unknown)"
)));
WTERMSIG
(
exitstatus
))));
#else
#else
ereport
(
lev
,
ereport
(
lev
,
...
...
src/port/exec.c
View file @
5b4fa959
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/port/exec.c,v 1.5
3 2007/01/28 07:29:32 tgl
Exp $
* $PostgreSQL: pgsql/src/port/exec.c,v 1.5
4 2007/01/29 20:17:40 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -587,9 +587,14 @@ pclose_check(FILE *stream)
...
@@ -587,9 +587,14 @@ pclose_check(FILE *stream)
log_error
(
_
(
"child process was terminated by exception 0x%X"
),
log_error
(
_
(
"child process was terminated by exception 0x%X"
),
WTERMSIG
(
exitstatus
));
WTERMSIG
(
exitstatus
));
#elif defined(HAVE_DECL_SYS_SIGLIST) && HAVE_DECL_SYS_SIGLIST
#elif defined(HAVE_DECL_SYS_SIGLIST) && HAVE_DECL_SYS_SIGLIST
log_error
(
_
(
"child process was terminated by signal %s"
),
{
char
str
[
256
];
snprintf
(
str
,
256
,
"%d: %s"
,
WTERMSIG
(
exitstatus
),
WTERMSIG
(
exitstatus
)
<
NSIG
?
WTERMSIG
(
exitstatus
)
<
NSIG
?
sys_siglist
[
WTERMSIG
(
exitstatus
)]
:
"(unknown)"
);
sys_siglist
[
WTERMSIG
(
exitstatus
)]
:
"(unknown)"
);
log_error
(
_
(
"child process was terminated by signal %s"
),
str
);
}
#else
#else
log_error
(
_
(
"child process was terminated by signal %d"
),
log_error
(
_
(
"child process was terminated by signal %d"
),
WTERMSIG
(
exitstatus
));
WTERMSIG
(
exitstatus
));
...
...
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