Hi Laurent,

> Pipe error: Too many open files

Opps, I can reproduce it! And I found this is a bug in the 'dir'
function on pil64. It leaks file descriptors _if_ the directory is
empty:

   $ mkdir a

   $ pil +
   : (call 'ls "-l" (pack "/proc/" *Pid "/fd"))
   total 0
   lrwx------ 1 app app 64 Sep  5 09:31 0 -> /dev/pts/0
   lrwx------ 1 app app 64 Sep  5 09:31 1 -> /dev/pts/0
   lrwx------ 1 app app 64 Sep  5 09:31 2 -> /dev/pts/0

   : (dir "a")                                 
   -> NIL

   : (call 'ls "-l" (pack "/proc/" *Pid "/fd"))
   total 0
   lrwx------ 1 app app 64 Sep  5 09:31 0 -> /dev/pts/0
   lrwx------ 1 app app 64 Sep  5 09:31 1 -> /dev/pts/0
   lrwx------ 1 app app 64 Sep  5 09:31 2 -> /dev/pts/0
   lr-x------ 1 app app 64 Sep  5 09:31 3 -> /home/app/picoLisp/a

I don't have the time at the moment to investigate it further. I hope I
can fix it this evening.

Thanks!!

Cheers,
- Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to