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

List:       kde-devel
Subject:    Re: KRun  issue
From:       Jeroen Wijnhout <Jeroen.Wijnhout () kdemail ! net>
Date:       2004-07-27 12:50:07
Message-ID: 200407271450.07487.Jeroen.Wijnhout () kdemail ! net
[Download RAW message or body]

On Tuesday 27 July 2004 15:03, Waldo Bastian wrote:
> On Tuesday 27 July 2004 14:24, Sheraz wrote:
> > I'm using KRun::runCommand ()
> > like following:
> >   int iPID = (int)
> > KRunn::runCommand("aninvalid_exec");
> >
> > problem is it always retuns pid value.....
> > i mean it should return value 0 in case of error but
> > it gives a pid in error case too
>
> It will pass the command to a shell and you will get the PID of the shell
> once it is running, afterwards the shell may very well fail to execute the
> command. If you want more control you probably should be using KProcess
> instead.

I was wondering what bool KRun::hasError () would return in such a case.

best,
Jeroen
-- 
Kile - KDE Integrated LaTeX Editor
http://kile.sourceforge.net
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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