Hi,

attached is a fix for the mips-epoll_pwait.diff patch file.
The exiting patch file removes zeroing sigmask, but does not zero sigset, the replacement of sigmask.


This causes sigset to hold bogus data and causes a hang.

The attached patch fixes this by moving the zeroing of sigset to before the condition, so it runs always.
Tested on arm64 chroot successfully.

Cheers, Tobias

diff --git a/debian/patches/mips-epoll_pwait.diff b/debian/patches/mips-epoll_pwait.diff
index 5b6bdb1..161f72e 100644
--- a/debian/patches/mips-epoll_pwait.diff
+++ b/debian/patches/mips-epoll_pwait.diff
@@ -48,8 +48,9 @@ Index: libuv1/src/unix/linux-core.c
  
 -  sigmask = 0;
 +  is_sigmasked = 0;
++  sigemptyset(&sigset);
    if (loop->flags & UV_LOOP_BLOCK_SIGPROF) {
-     sigemptyset(&sigset);
+-    sigemptyset(&sigset);
      sigaddset(&sigset, SIGPROF);
 -    sigmask |= 1 << (SIGPROF - 1);
 +    is_sigmasked = 1;
-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to