[vdr] [patch] avoid inheritance of file descriptors

Darren Salt linux at youmustbejoking.demon.co.uk
Tue Dec 11 13:09:23 CET 2007


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
> SystemExec().

> 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.

-- 
| Darren Salt    | linux or ds at              | nr. Ashington, | Toon
| RISC OS, Linux | youmustbejoking,demon,co,uk | Northumberland | Army
| + Burn less waste. Use less packaging. Waste less.     USE FEWER RESOURCES.

I am Bjorn of Borg. Wimbledon is irrelevant.



More information about the vdr mailing list