<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"></div><div dir="ltr">Thanks a lot. Was just to make sure.</div><div dir="ltr"><br>Am 18.04.2019 um 18:32 schrieb Andreas Wacknitz <<a href="mailto:A.Wacknitz@gmx.de">A.Wacknitz@gmx.de</a>>:<br><br></div><blockquote type="cite"><div dir="ltr">

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">


    <div class="moz-cite-prefix">Am 18.04.19 um 17:55 schrieb Rouven
      WEILER:<br>
    </div>
    <blockquote type="cite" cite="mid:EC149FB0-95AA-44C4-92C8-F3A536F3C99C@gmx.net">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      is the following patch included in the actual oi codebase and
      since when?
      <div><br>
      </div>
      <div><a href="https://www.illumos.org/issues/9959" moz-do-not-send="true">https://www.illumos.org/issues/9959</a></div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
oi-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oi-dev@openindiana.org">oi-dev@openindiana.org</a>
<a class="moz-txt-link-freetext" href="https://openindiana.org/mailman/listinfo/oi-dev">https://openindiana.org/mailman/listinfo/oi-dev</a>
</pre>
    </blockquote>
    <font size="+2">Obviously, you can see the commit id. With this you
      can run<br>
      git show </font><font size="+2"><a href="https://github.com/illumos/illumos-gate/commit/6da2547363ddbd247ee9513db83b05a31bca31af" class="external">6da2547363ddbd247ee9513db83b05a31bca31af</a><br>
      <br>
      commit 6da2547363ddbd247ee9513db83b05a31bca31af<br>
      Author: Richard Lowe <a class="moz-txt-link-rfc2396E" href="mailto:richlowe@richlowe.net"><richlowe@richlowe.net></a><br>
      Date:   Tue Nov 6 00:57:32 2018 +0000<br>
      <br>
          9959 pthread_mutex_init should initialize mutex appropriately
      for robust mutex_init<br>
          Reviewed by: Jason King <a class="moz-txt-link-rfc2396E" href="mailto:jason.king@joyent.com"><jason.king@joyent.com></a><br>
          Reviewed by: Robert Mustacchi <a class="moz-txt-link-rfc2396E" href="mailto:rm@joyent.com"><rm@joyent.com></a><br>
          Approved by: Dan McDonald <a class="moz-txt-link-rfc2396E" href="mailto:danmcd@joyent.com"><danmcd@joyent.com></a><br>
      <br>
      diff --git a/usr/src/lib/libc/port/threads/pthr_mutex.c
      b/usr/src/lib/libc/port/threads/pthr_mutex.c<br>
      index 1f70725677..c8943671aa 100644<br>
      --- a/usr/src/lib/libc/port/threads/pthr_mutex.c<br>
      +++ b/usr/src/lib/libc/port/threads/pthr_mutex.c<br>
      @@ -226,6 +226,23 @@ pthread_mutex_init(pthread_mutex_t
      *_RESTRICT_KYWD mutex,<br>
                          PTHREAD_PRIO_NONE | PTHREAD_MUTEX_STALLED;<br>
              }<br>
      <br>
      +       /*<br>
      +        * POSIX mutexes (this interface) make no guarantee about
      the state of<br>
      +        * the mutex before pthread_mutex_init(3C) is called.  Sun
      mutexes, upon<br>
      +        * which these are built and which mutex_init(3C) below
      represents<br>
      +        * require that a robust mutex be initialized to all 0s
      _prior_ to<br>
      +        * mutex_init() being called, and that mutex_init() of an
      initialized<br>
      +        * mutex return EBUSY.<br>
      +        *<br>
      +        * We respect both these behaviors by zeroing the mutex
      here in the<br>
      +        * POSIX implementation if and only if the mutex magic is
      incorrect,<br>
      +        * and the mutex is robust.<br>
      +        */<br>
      +       if (((type & PTHREAD_MUTEX_ROBUST) != 0) &&<br>
      +           (((mutex_t *)mutex)->mutex_magic != MUTEX_MAGIC)) {<br>
      +               (void) memset(mutex, 0, sizeof (*mutex));<br>
      +       }<br>
      +<br>
              return (mutex_init((mutex_t *)mutex, type,
      &prioceiling));<br>
       }<br>
      <br>
      <br>
      So if you run pkg update on OI after Nov 6th, 2018, you should
      have it :)<br>
      <br>
      Regards<br>
    </font>


</div></blockquote><blockquote type="cite"><div dir="ltr"><span>_______________________________________________</span><br><span>oi-dev mailing list</span><br><span><a href="mailto:oi-dev@openindiana.org">oi-dev@openindiana.org</a></span><br><span><a href="https://openindiana.org/mailman/listinfo/oi-dev">https://openindiana.org/mailman/listinfo/oi-dev</a></span><br></div></blockquote></body></html>