pid_t or Q_PID?

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Thu Jun 14 07:04:04 BST 2007


Von: Thiago Macieira
> Christian Ehrlicher wrote:
> >Hi,
> >
> >while porting krun from k3process -> kprocess I hit the problem then
> >QProcess is using Q_PID instead pid_t. Therefore my question - what to
> >use in the interface of krun?
> 
> Portable code shouldn't have to know the PID. Q_PID is a handle on 
> Windows, AFAIR.
> 
Yes, that's correct. krun is doing strange things with pid_t - sometimes bool is casted to pid_t. On the other side I did not found a place where the returned pid_t is really used afterwards (just looked in kdelibs).


Christian
-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail




More information about the kde-core-devel mailing list