aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-12-23 23:48:14 +0000
committerZac Medico <zmedico@gentoo.org>2008-12-23 23:48:14 +0000
commit69e2e5d5a458876cbccb6e6f479d41eaa55cf544 (patch)
tree513f1615bf38e5eb0a549ce8065c4f601438b789 /bin/emerge
parentMake more code conditional on POLLIN events, where appropriate. (diff)
downloadportage-69e2e5d5a458876cbccb6e6f479d41eaa55cf544.tar.gz
portage-69e2e5d5a458876cbccb6e6f479d41eaa55cf544.tar.bz2
portage-69e2e5d5a458876cbccb6e6f479d41eaa55cf544.zip
Add SIGUSR1 signal handlers that call pdb.set_trace(). Thanks to Brian Harring for
the suggestion. svn path=/main/trunk/; revision=12292
Diffstat (limited to 'bin/emerge')
-rwxr-xr-xbin/emerge5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/emerge b/bin/emerge
index 40e3b19f0..b07ad9e0e 100755
--- 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: