Re: Quick close of all the open files.

From: Måns Rullgård
Date: Wed Jun 07 2006 - 03:57:01 EST


Valdis.Kletnieks@xxxxxx writes:

> On Tue, 06 Jun 2006 23:03:38 BST, =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= said:
>> > (Hint - what does that fp->_chain = stderr *really* do? ;)
>>
>> As it touches the innards of the FILE type, it invokes undefined
>> behavior. Nothing that follows can be considered a bug.
>
> Invoking undefined behavior is often considered a bug itself. And it's
> certainly happening in userspace.. so there's a userspace bug. ;)

The bug is in the program that invoked the undefined behavior, not in
the library (libc) in which this behavior was invoked.

--
Måns Rullgård
mru@xxxxxxxxxxxxx

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