Detaching [QK]Process
Thiago Macieira
thiago at kde.org
Thu Jun 21 05:36:13 BST 2007
Alex Merry wrote:
>While trying to do the last remaining port from K3Process to KProcess in
>kdelibs, I ran across a problem.
>
>KFileSharePropsPlugin [kio/kfile/kfilesharedialog.cpp] uses
>K3Process::detach() in its destructor to make sure the kdesu process it
>starts does not get terminated when KFileSharePropsPlugin is destroyed.
> KProcess does not appear to have a similar method.
>
>I thought QProcess::close() might do it (the APIDOX suggest so), but -
>looking at the source code - it actually kills the process.
>
>Any ideas on what to do?
Leave K3Process.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070621/16f5d15a/attachment.sig>
More information about the kde-core-devel
mailing list