Эх сурвалжийг харах

Remove some debugging code

Eric Andersen 23 жил өмнө
parent
commit
606def5ccd

+ 4 - 0
libpthread/linuxthreads/signals.c

@@ -133,7 +133,9 @@ int sigaction(int sig, const struct sigaction * act,
   struct sigaction newact;
   struct sigaction newact;
   struct sigaction *newactp;
   struct sigaction *newactp;
 
 
+#ifdef DEBUG_PT
 printf(__FUNCTION__": pthreads wrapper!\n");
 printf(__FUNCTION__": pthreads wrapper!\n");
+#endif
   if (sig == __pthread_sig_restart ||
   if (sig == __pthread_sig_restart ||
       sig == __pthread_sig_cancel ||
       sig == __pthread_sig_cancel ||
       (sig == __pthread_sig_debug && __pthread_sig_debug > 0))
       (sig == __pthread_sig_debug && __pthread_sig_debug > 0))
@@ -155,7 +157,9 @@ printf(__FUNCTION__": pthreads wrapper!\n");
     newactp = NULL;
     newactp = NULL;
   if (__libc_sigaction(sig, newactp, oact) == -1)
   if (__libc_sigaction(sig, newactp, oact) == -1)
     return -1;
     return -1;
+#ifdef DEBUG_PT
 printf(__FUNCTION__": signahdler installed, __sigaction successful\n");
 printf(__FUNCTION__": signahdler installed, __sigaction successful\n");
+#endif
   if (sig > 0 && sig < NSIG)
   if (sig > 0 && sig < NSIG)
     {
     {
       if (oact != NULL)
       if (oact != NULL)