[Qt-interest] Qt4 & fork()
wim.delvaux at adaptiveplanet.com
wim.delvaux at adaptiveplanet.com
Thu Dec 4 09:58:06 CET 2008
Compatible with Qt : Yes
Portable : No
Difference with QProcess : AFAIK, QProcess is a portable Fork/Exec
alternative, fork allows you to make a clone of the current processes. This
is generally done for servers needing to do some - temporary - long term
special work for some client. all variables and state and files are 'copied'
over to the forked process so that this process can do things just like the
program that forked it. QProcess does not allow to do that. You need to use
threads for that in Qt. This generally requires use of synchronization
methods and locking methods etc.
However in MOST cases you just use qprocess ...
HTH
W
On Thursday 04 December 2008 04:52:34 Rick Vernam wrote:
> On Wednesday 03 December 2008 09:37:00 pm Miguel Cardenas wrote:
> > Cool, that's what I need, but I have still a doubt, is it only for Qt
> > applications
>
> no.
>
> > or it may launch any application, particularly a text console
> > program...
>
> yes, and can even communicate via normal IPC with non-Qt apps.
> I don't remember the details, but I remember using pipe & dup, things like
> that, in a C-based command line app...and a Qt app to invoke & communicate.
>
> > Thanks!
> >
> > On Wed, Dec 3, 2008 at 8:26 PM, Manuel Fiorelli
> >
> > <manuel.fiorelli at gmail.com>wrote:
> > > I cannot answer your questions, but in my opinion you should look at
> > > the class QProcess, which is "
> > >
> > > used to start external programs and to communicate with them"
> > >
> > >
> > > Manuel Fiorelli
> > >
> > >
> > >
> > > _______________________________________________
> > > Qt-interest mailing list
> > > Qt-interest at trolltech.com
> > > http://lists.trolltech.com/mailman/listinfo/qt-interest
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list