Re: [PATCHv2 4/4] first use of sys_indirect system call

From: dean gaudet
Date: Fri Nov 16 2007 - 13:23:09 EST


On Fri, 16 Nov 2007, Ulrich Drepper wrote:

> dean gaudet wrote:
> > honestly i think there should be a per-task flag which indicates whether
> > fds are by default F_CLOEXEC or not. my reason: third party libraries.
>
> Only somebody who thinks exclusively about applications as opposed to
> runtimes/libraries can say something like that. Library writers don't
> have the luxury of being able to modify any global state. This has all
> been discussed here before.

only someone who thinks about writing libraries can say something like
that. you've solved the problem for yourself, and for well written
applications, but not for the other 99.9999% of libraries out there.

i'm not suggesting the library set the global flag. i'm suggesting that
me as an app writer will do so.

it seems like both methods are useful.

-dean
-
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/