<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] WebKitGtk+ uses too many file descriptors"
   href="https://bugs.webkit.org/show_bug.cgi?id=152316#c37">Comment # 37</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] WebKitGtk+ uses too many file descriptors"
   href="https://bugs.webkit.org/show_bug.cgi?id=152316">bug 152316</a>
              from <span class="vcard"><a class="email" href="mailto:cgarcia&#64;igalia.com" title="Carlos Garcia Campos &lt;cgarcia&#64;igalia.com&gt;"> <span class="fn">Carlos Garcia Campos</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=152316#c36">comment #36</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=282771&amp;action=diff" name="attach_282771" title="Updated patch">attachment 282771</a> <a href="attachment.cgi?id=282771&amp;action=edit" title="Updated patch">[details]</a></span>
&gt; Updated patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=282771&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=282771&amp;action=review</a>
&gt; 
&gt; Yay.</span >

Thanks for the review.

<span class="quote">&gt; &gt; Source/WTF/wtf/UniStdExtras.h:51
&gt; &gt; +inline bool setCloseOnExec(int fileDescriptor)
&gt; 
&gt; This is probably too long to be an inline function; you risk reduced
&gt; performance from increased code size. I would add a .cpp file and move the
&gt; implementation there.</span >

Ok.

<span class="quote">&gt; &gt; Source/WTF/wtf/UniStdExtras.h:63
&gt; &gt; +inline int dupCloseOnExec(int fileDescriptor)
&gt; 
&gt; Ditto regarding inline.
&gt; 
&gt; But also, this function looks like just a replacement for dup3. I think it'd
&gt; be worthwhile to implement it using dup3 in the #ifdef __linux__ case, and
&gt; use your current code here only as a fallback.</span >

No, this is not equivalent to dup3, we want dup to chose the new fd for us.

<span class="quote">&gt; &gt; Source/WTF/wtf/UniStdExtras.h:70
&gt; &gt; +
&gt; 
&gt; Extra blank line here?</span >

Yes.

<span class="quote">&gt; &gt; Source/WebKit2/ChangeLog:27
&gt; &gt; +        objects having a valid file descriptor. Use dupCloseOnExec() con duplicate the handle and set the close on exec flag.
&gt; 
&gt; &quot;con&quot; is not the right word here... did you mean &quot;to&quot;?</span >

Indeed.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>