[vdr] [patch] avoid inheritance of file descriptors
Klaus.Schmidinger at cadsoft.de
Tue Dec 11 13:16:32 CET 2007
On 12/11/2007 01:09 PM, Darren Salt wrote:
> I demand that Klaus Schmidinger may or may not have written...
> [snip; FD_CLOEXEC]
>> Why is this suddenly such a big problem?
>> If a plugin wants to run an external program it can simply use
>> Besides, as Darren Salt pointed out, this flag is apparently only available
>> in the very latest kernel version, which I'm pretty sure is not that widely
>> in use yet.
> Er, no: FD_CLOEXEC has been available for years (see fcntl(2)). You're
> confusing it with O_CLOEXEC, which is new.
Nevertheless, SystemExec() (or something similar) is what a plugin
should use when launching an external program.
More information about the vdr