[erlang-questions] who owns an open file

Mats Cronqvist mats.cronqvist@REDACTED
Thu Mar 22 10:22:27 CET 2007

Ulf Wiger (TN/EAB) wrote:
> Mats Cronqvist:
>>    trying to outdo me in the Horrible One-Liner Competition? Hah!
>> [{process_info(Pid,monitors),ets:lookup(file_io_servers,Pid)}|
>> |[{name,"efile"},{links,[Pid]}|_]<-[erlang:port_info(P) 
>> || P <- erlang:ports()]].
> I pronounce that my solution was more horrible than yours.  (:

   true enough... bested again...

   perhaps this could be turned into file:list_open_files/0?


More information about the erlang-questions mailing list