<p>Hi,</p>

<p>I'm developing a new module that writes logs in a log file using the function fprintf. <br>
My question is, do I have to implement any lock to write safely in the file? As far as I know fprintf is thread-safe, but even though it, I don't know if it is necessary or not.</p>

<p>Thanks,</p>

<p>Laura</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/681">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AF36ZUrLgFBDn1AlLr4TrscGpMm5f9avks5qOQdFgaJpZM4I7mj_">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZfjUEhucD_A51G5sj2TdZh7iUaXnks5qOQdFgaJpZM4I7mj_.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/681"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>