[erlang-questions] Two questions about open files and file descriptors

Daniel Dormont dan@REDACTED
Tue May 1 19:40:12 CEST 2012


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?

-Dan

On Tue, May 1, 2012 at 12:46 PM, Max Lapshin <max.lapshin@REDACTED> wrote:

> lsof -p
> ulimit
>
> [{Pid, Ports} || {Pid,Ports} <- [{Pid, [L || L <-
> element(2,process_info(Pid, links)), is_port(L)]} || Pid <-
> processes()], length(Ports) > 0]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120501/892f6708/attachment.htm>


More information about the erlang-questions mailing list