lkml.org 
[lkml]   [2012]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] nextfd(2)
On 04/06/2012 01:16 PM, Alexey Dobriyan wrote:
>
> closefrom(3) written via nextfd(2) loop is reliable and doesn't fail.
> closefrom(3) written via /proc/self/fd is reliable and can fail (including ENOMEM).
> closefrom(3) written via close(fd++) is unreliable.
>

I call shenanigans on this. There is no reason to ENOMEM on the second
written using the fdwalk() implementation I already posted, for example.

-hpa




\
 
 \ /
  Last update: 2012-04-06 23:05    [W:0.218 / U:0.548 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site