[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Fwd: kprocess - close all open files in the child
From:       Waldo Bastian <bastian () kde ! org>
Date:       2002-12-19 10:56:08
[Download RAW message or body]

I have reverted the patch for KDE 3.1 since it breaks backwards compatibility 
and the error handling of KProcess itself. Will fix sycoca to set the close 
on exec flag on its fd.

Cheers,
Waldo

On Wednesday 18 December 2002 23:53, Carsten Pfeiffer wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
>
> - ----------  Forwarded Message  ----------
>
> Subject: kprocess - close all open files in the child
> Date: Wednesday 18 December 2002 09:17
> From: Klaus-Dieter Krannich <kd@Math.TU-Cottbus.DE>
> To: kde-devel@kde.org
>
> Hi all,
>
> Sometimes it is necessary to have additonal (beside stdin/stdout/stderr)
> communication channels between the caller and the child. In traditional
> GUI programming this is often done by opening a pipe/socketpair in the
> caller and passing a filedescriptor via commandline args to the child.
> The recently added 'close all open files in the child after the fork'
> feature in kprocess makes such an approach impossible. It would be
> really nice, if this behaviour was the default, but could be turned off
> by an appropriate flag at construction time.
>
> BTW, "Xterm started from minicli really doesn't need to have the ksycoca
> file open" is a weak argument w.r.t. the 'brute force' loop over all
> possible fd's. Wouldn't it be better to fix minicli ? :-)
>
> Greetings
>
> 	K-D
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> >> unsubscribe <<
>
> - -------------------------------------------------------
>
> - --
> Carsten Pfeiffer
> -----BEGIN PGP SIGNATURE-----
>
> iQEVAwUBPgD8U6WgYMJuwmZtAQGsXQf/dHQ/ulvCXlS9VfdflDffXfeqUIzVWLUU
> 1Q3tABC1LnXt/LI/8MqxD3snMjgF5BTZrxhFSfBqcw7mEQ4mpdP+8GpK7p4PaHIy
> KYrcG7LgQrimsyJDPPUqhr39nhbWM0pjvXjsyqSpOFow2YJzyNibC2x9u1voehQi
> 0pMxHbt2MHdBkuVNJhHhiGU4ljtstwABwAk/3qFbKr1vvYQHME4WTNXLo8qFG2xw
> qwqzZqdS9y2jtVggjH7QnPrcRa6G6ArpzXcKECElEVYnTRywzw1jP29GdgfV4OWw
> Nn8N7USvt1/tXK2rsAZNTMuFC33f+bPY+bBH+nVaXp2hkJXBRALWrw==
> =kmgT
> -----END PGP SIGNATURE-----

-- 
bastian@kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian@suse.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic