projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5876bf
)
Add SIGUSR1 signal handlers that call pdb.set_trace(). Thanks to Brian Harring for
author
Zac Medico
<zmedico@gentoo.org>
Tue, 23 Dec 2008 23:48:14 +0000
(23:48 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 23 Dec 2008 23:48:14 +0000
(23:48 -0000)
the suggestion.
svn path=/main/trunk/; revision=12292
bin/ebuild
patch
|
blob
|
history
bin/emerge
patch
|
blob
|
history
diff --git
a/bin/ebuild
b/bin/ebuild
index a38d189a970c75d42b8138e6cc1ae2503e4cb632..33326d63e824300b8c3ea8f5fb61e1eda35c517a 100755
(executable)
--- a/
bin/ebuild
+++ b/
bin/ebuild
@@
-19,6
+19,11
@@
try:
except KeyboardInterrupt:
sys.exit(1)
+def debug_signal(signum, frame):
+ import pdb
+ pdb.set_trace()
+signal.signal(signal.SIGUSR1, debug_signal)
+
import optparse
import os
diff --git
a/bin/emerge
b/bin/emerge
index 40e3b19f03f940e64f11037862f7db91c7aca47e..b07ad9e0e4d6587ed10dfb856c4cc76c7d735c96 100755
(executable)
--- a/
bin/emerge
+++ b/
bin/emerge
@@
-20,6
+20,11
@@
try:
except KeyboardInterrupt:
sys.exit(1)
+def debug_signal(signum, frame):
+ import pdb
+ pdb.set_trace()
+signal.signal(signal.SIGUSR1, debug_signal)
+
try:
import _emerge
except ImportError: