<p>Force-pushed with a new version. New function is called <code>posix.redirect2null</code> and takes fd number as argument:</p>

<pre><code>  posix.redirect2null(1) # close stdout
  posix.redirect2null(2) # close stderr
</code></pre>

<p>I run a few package installs/uninstalls with different scriptlets using this, and all seems to work as expected.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/rpm-software-management/rpm/pull/44#issuecomment-192487965">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ANb80ymOLFpGb-nzcSaRJzD81EO1pA39ks5pqKtxgaJpZM4HFPFo.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/rpm-software-management/rpm/pull/44#issuecomment-192487965"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>