Skip to content

Commit b7e78e4

Browse files
committed
Refactor ptrace/process_tools.py; update changelog
1 parent 401d9fd commit b7e78e4

2 files changed

Lines changed: 17 additions & 7 deletions

File tree

doc/changelog.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ python-ptrace 0.9.9
1212
Patch by fab1ano.
1313
* Added RISCV (riscv32/riscv64) support.
1414
Patch by Andreas Schwab and vimer/yuzibo.
15+
* Fix stray exception raised by child processes terminating with exit code 255.
16+
Path by Duane Voth/duanev
1517

1618
python-ptrace 0.9.8 (2021-03-17)
1719
--------------------------------

ptrace/process_tools.py

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
from ptrace.os_tools import RUNNING_LINUX
22
if RUNNING_LINUX:
3-
from ptrace.linux_proc import (ProcError, openProc,
4-
readProcessProcList, readProcessLink, readProcessStat)
5-
from ptrace.signames import signalName # noqa
3+
from ptrace.linux_proc import (
4+
ProcError,
5+
openProc,
6+
readProcessLink,
7+
readProcessProcList,
8+
readProcessStat,
9+
)
10+
from ptrace.signames import signalName # noqa
611
from os import (
7-
WIFSTOPPED, WSTOPSIG,
8-
WIFSIGNALED, WTERMSIG,
9-
WIFEXITED, WEXITSTATUS,
10-
WCOREDUMP)
12+
WCOREDUMP,
13+
WEXITSTATUS,
14+
WIFSIGNALED,
15+
WIFSTOPPED,
16+
WSTOPSIG,
17+
WTERMSIG,
18+
)
1119

1220

1321
def dumpProcessInfo(log, pid, max_length=None):

0 commit comments

Comments
 (0)