Skip to content

Commit

Permalink
pkdp - still debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
robnagler committed Jan 18, 2025
1 parent 44321aa commit 671353e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pykern/pksubprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
:license: http://www.apache.org/licenses/LICENSE-2.0.html
"""
from __future__ import absolute_import, division, print_function
from pykern.pkdebug import pkdc, pkdexc, pkdp
from pykern.pkdebug import pkdc, pkdexc, pkdp, pkdlog
import os
import signal
import six
Expand Down Expand Up @@ -39,12 +39,12 @@ def check_call_with_signals(cmd, output=None, env=None, msg=None, recursive_kill
all_pids = set()

def signal_handler(sig, frame):
pkdp([sig, frame])
pkdlog([sig, frame])
try:
if p:
p.send_signal(sig)
except Exception as e:
pkdp([e])
pkdlog([e])
pass
finally:
ps = prev_signal[sig]
Expand Down
2 changes: 1 addition & 1 deletion tests/pksubprocess_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def signal_handler(sig, frame):
cmd = ["sh", "kill.sh"]
exc = None
try:
pkunit.pkdp(cmd)
pkdebug.pkdlog(cmd)
pksubprocess.check_call_with_signals(cmd, output=o, msg=msg)
except RuntimeError as e:
exc = e
Expand Down

0 comments on commit 671353e

Please sign in to comment.