Re: [patch] avoid inheritance of file descriptors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Oh, sorry.

Nevertheless, SystemExec() (or something similar) is what a plugin
should use when launching an external program.

Klaus

_______________________________________________
vdr mailing list
vdr@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux