On Sunday 15 of October 2017, Arkadiusz Miśkiewicz wrote:
> Hi.
> 
> Is this lock supposed to be locked/unlocked before initialization?

Ok, this was missing

--- rpmio/rpmsq.c~      2017-10-15 09:34:23.000000000 +0200
+++ rpmio/rpmsq.c       2017-10-15 10:05:39.859549557 +0200
@@ -781,7 +781,9 @@
        (void) sigprocmask (SIG_SETMASK, &oldMask, NULL);

        /* Reset rpmsigTbl lock and refcnt. */
+#ifndef PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
        INIT_LOCK ();
+#endif

        (void) execve (argv[0], (char *const *) argv, environ);
        _exit (127);

-- 
Arkadiusz Miśkiewicz, arekm / ( maven.pl | pld-linux.org )
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
Developer Communication List                        rpm-devel@rpm5.org

Reply via email to