<p dir="ltr">That&#39;s the &quot;well behaved&quot; process. I&#39;m looking for a solution at the kernel control level that can alter the list of ports the kernel manages for the aberrant process that hangs with an open port and dies leaving it open. It feels like a kernel bug to have an open port with no process attached. Closing a port with the owning process still running would be a useful tool for testing that process&#39; response to a system failure.</p>

<div class="gmail_quote">On Jan 3, 2014 8:53 AM, &quot;James Sumners&quot; &lt;<a href="mailto:james.sumners@gmail.com">james.sumners@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Uh, a port is only open if a process has opened it. Short of killing<br>
the process that opened it, your only option is dropping any requests<br>
to that port with an iptables rule.<br>
<br>
On Fri, Jan 3, 2014 at 8:37 AM, Jim Kinney &lt;<a href="mailto:jim.kinney@gmail.com">jim.kinney@gmail.com</a>&gt; wrote:<br>
&gt; Based on Alex&#39;s recent post with an errant port, I realized I have a gap in<br>
&gt; knowledge.<br>
&gt;<br>
&gt; As root, how can I close an open port without firewall stuff and regardless<br>
&gt; of whether a process is attached to the port or not?<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Ale mailing list<br>
&gt; <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
&gt; <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
&gt; See JOBS, ANNOUNCE and SCHOOLS lists at<br>
&gt; <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
&gt;<br>
<br>
<br>
<br>
--<br>
James Sumners<br>
<a href="http://james.roomfullofmirrors.com/" target="_blank">http://james.roomfullofmirrors.com/</a><br>
<br>
&quot;All governments suffer a recurring problem: Power attracts<br>
pathological personalities. It is not that power corrupts but that it<br>
is magnetic to the corruptible. Such people have a tendency to become<br>
drunk on violence, a condition to which they are quickly addicted.&quot;<br>
<br>
Missionaria Protectiva, Text QIV (decto)<br>
CH:D 59<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</blockquote></div>