lkml.org 
[lkml]   [2006]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Quick close of all the open files.
Date
"vamsi krishna" <vamsi.krishnak@gmail.com> writes:

>> For bonus points, how did you verify that all the open files were closed?
>>
> I checked as follows I did printf("lowest fd = %d",fileno(tmpfile()));
> it prints 3

That is proof that at least stdout is still open, or you would not see
the output.

--
Måns Rullgård
mru@inprovide.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-06-07 00:42    [from the cache]
©2003-2011 Jasper Spaans