[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#338182: kfreebsd-5: signals for linuxthreads internal operation



> Thanks for the patch, a new kernel has just been uploaded. A new glibc 
> will follow soon, probably tomorrow. I have already a working one on my 
> disk, but I need to make a clean patch first.

Thanks very much.

> This line has to be
> +      if ((flags & CSIGNAL) & ~RFTHPNMASK)

Good catch ;-)

I have another one:

--- sysdeps/unix/bsd/bsd4.4/kfreebsd/bits/sigset.h~
+++ sysdeps/unix/bsd/bsd4.4/kfreebsd/bits/sigset.h
@@ -42,9 +42,9 @@
 # ifndef _EXTERN_INLINE
 #  define _EXTERN_INLINE extern __inline
 # endif
   
   
 /* Return a mask that includes SIG only.  */
-# define __sigmask(sig)        ((unsigned int) 1 << ((sig) - 1))
+# define __sigmask(sig)        ((unsigned int) 1 << ((sig) - 1) % 32)

 /* Return the word index for SIG.  */
 # define __sigword(sig)        (((sig) - 1) >> 5)


Hope it helps

		Petr





Reply to: