Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISC Open Source Projects
Kea
Commits
3adabc6a
Commit
3adabc6a
authored
Mar 07, 2012
by
Mukund Sivaraman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[1673] Output the signal name even when the process dumps core
parent
1cd0d0e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/lib/python/isc/bind10/component.py
src/lib/python/isc/bind10/component.py
+3
-3
No files found.
src/lib/python/isc/bind10/component.py
View file @
3adabc6a
...
...
@@ -227,11 +227,11 @@ class BaseComponent:
signame
=
get_signame
(
sig
)
exit_str
=
"process stopped with exit status %d (killed by signal %d: %s)"
%
(
exit_code
,
sig
,
signame
)
elif
os
.
WIFSIGNALED
(
exit_code
):
sig
=
os
.
WTERMSIG
(
exit_code
)
signame
=
get_signame
(
sig
)
if
os
.
WCOREDUMP
(
exit_code
):
exit_str
=
"process dumped core with exit status %d
"
%
(
exit_cod
e
)
exit_str
=
"process dumped core with exit status %d
(killed by signal %d: %s)"
%
(
exit_code
,
sig
,
signam
e
)
else
:
sig
=
os
.
WTERMSIG
(
exit_code
)
signame
=
get_signame
(
sig
)
exit_str
=
"process terminated with exit status %d (killed by signal %d: %s)"
%
(
exit_code
,
sig
,
signame
)
else
:
exit_str
=
"unknown condition with exit status %d"
%
(
exit_code
)
...
...
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