Fwd: kprocess - close all open files in the child

Oswald Buddenhagen ossi at kde.org
Thu Dec 19 13:35:25 GMT 2002


On Thu, Dec 19, 2002 at 01:16:39PM +0100, Waldo Bastian wrote:
> I'm currently adding Pty support to KProcess for KDE 3.2,
>
cool. :)
for now, we have ptys in konsole and recently in kdm (even though it's
not compiled by default) and probably in other places.

> I will add a KProcess::passFd(int fd) and then close everything else.
> 
it will break backwards compat in any case.
additionally, its the reverse of the way things work usually, so it will
indirectly cause bugs in non-kde apps created by kde-regaled
programmers.

> For 3.1 I will hunt down these pipes and set their close-on-exec flag.
> 
this is the only acceptable fix, imho.
too bad unix has no close-on-fork flag ... it often makes sense, too.

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




More information about the kde-core-devel mailing list