summaryrefslogtreecommitdiffstats
path: root/linker/debugger.c
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:03:48 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:03:48 -0800
commit4e468ed2eb86a2406e14f1eca82072ee501d05fd (patch)
tree4e05b3c66eef86531e464521a3bf96a1864d4bf5 /linker/debugger.c
parenta27d2baa0c1a2ec70f47ea9199b1dd6762c8a349 (diff)
downloadbionic-4e468ed2eb86a2406e14f1eca82072ee501d05fd.zip
bionic-4e468ed2eb86a2406e14f1eca82072ee501d05fd.tar.gz
bionic-4e468ed2eb86a2406e14f1eca82072ee501d05fd.tar.bz2
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'linker/debugger.c')
-rw-r--r--linker/debugger.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/linker/debugger.c b/linker/debugger.c
index 68997c5..542cf8d 100644
--- a/linker/debugger.c
+++ b/linker/debugger.c
@@ -16,20 +16,20 @@ void debugger_signal_handler(int n)
{
unsigned tid;
int s;
-
- /* avoid picking up GC interrupts */
+
+ /* avoid picking up GC interrupts */
signal(SIGUSR1, SIG_IGN);
-
+
tid = gettid();
s = socket_local_client("android:debuggerd",
ANDROID_SOCKET_NAMESPACE_ABSTRACT, SOCK_STREAM);
-
+
if(s >= 0) {
- /* debugger knows our pid from the credentials on the
- ** local socket but we need to tell it our tid. It
- ** is paranoid and will verify that we are giving a tid
- ** that's actually in our process
- */
+ /* debugger knows our pid from the credentials on the
+ * local socket but we need to tell it our tid. It
+ * is paranoid and will verify that we are giving a tid
+ * that's actually in our process
+ */
write(s, &tid, sizeof(unsigned));
read(s, &tid, 1);
@@ -37,7 +37,7 @@ void debugger_signal_handler(int n)
close(s);
}
- /* remove our net so we fault for real when we return */
+ /* remove our net so we fault for real when we return */
signal(n, SIG_IGN);
}