[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: pid_t or Q_PID?
From: Thiago Macieira <thiago () kde ! org>
Date: 2007-06-14 19:12:32
Message-ID: 200706142112.44334.thiago () kde ! org
[Download RAW message or body]
Oswald Buddenhagen wrote:
>On Thu, Jun 14, 2007 at 08:36:40PM +0200, Christian Ehrlicher wrote:
>> Ok, I think we should return at least bool so that the caller can
>> determine if the process was started or not
>
>when you check the logs (and read the code carefully :) you'll notice
>that originally a bool was returned and it was later changed into a pid.
>the immediate users might have vanished again, but i don't think it is a
>very clever idea to remove the functionality.
I think in this case it is.
What do people want to do with a PID?
They can't use kill(2), getsid(2), or waitpid(2)-like functions.
Do they want to know if the process started? That's a bool.
Do they want to have an identifier? That's the KProcess object itself.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
["signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic