<div>Thanks. Will that include ports open from processes that have died? That's the specific case I'm trying to understand - what happens if a process crashes with a file open, and how do I recover from it?</div><div>
<br></div><div>-Dan<br><div><div><br><div class="gmail_quote">On Tue, May 1, 2012 at 12:46 PM, Max Lapshin <span dir="ltr"><<a href="mailto:max.lapshin@gmail.com" target="_blank">max.lapshin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">lsof -p<br>
ulimit<br>
<br>
[{Pid, Ports} || {Pid,Ports} <- [{Pid, [L || L <-<br>
element(2,process_info(Pid, links)), is_port(L)]} || Pid <-<br>
processes()], length(Ports) > 0]<br>
</blockquote></div><br></div></div></div>