Alexandre Julliard : server: Print a trace when sending a signal to a thread.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jan 18 06:45:16 CST 2007


Module: wine
Branch: master
Commit: ae4ecb6c6448f6069f81f14ba0f84f0fc1b54e9e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ae4ecb6c6448f6069f81f14ba0f84f0fc1b54e9e

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Jan 18 12:23:29 2007 +0100

server: Print a trace when sending a signal to a thread.

---

 server/mach.c   |    2 ++
 server/ptrace.c |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/server/mach.c b/server/mach.c
index ec121e2..111953c 100644
--- a/server/mach.c
+++ b/server/mach.c
@@ -243,6 +243,8 @@ int send_thread_signal( struct thread *t
             thread->unix_tid = -1;
         }
     }
+    if (debug_level && ret != -1)
+        fprintf( stderr, "%04x: *sent signal* signal=%d\n", thread->id, sig );
     return (ret != -1);
 }
 
diff --git a/server/ptrace.c b/server/ptrace.c
index 37c15c0..14a29f5 100644
--- a/server/ptrace.c
+++ b/server/ptrace.c
@@ -262,6 +262,8 @@ int send_thread_signal( struct thread *t
             thread->unix_tid = -1;
         }
     }
+    if (debug_level && ret != -1)
+        fprintf( stderr, "%04x: *sent signal* signal=%d\n", thread->id, sig );
     return (ret != -1);
 }
 




More information about the wine-cvs mailing list