[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: [kde-devel] pid's
From: Mark Deneen <deneen () gmx ! net>
Date: 2002-06-07 14:29:36
[Download RAW message or body]
Sheldon Lee-Wen wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Hi again,
>
> Anyone know how to get the pid of a process running in the system? I have a
>daemon that the user can run (called lineakd), and I want to check to see if
>it is running when I start my gui program (klineakconfig), so that I don't
>end up running multiple instances of it. (or so I can kill it and start one
>w/ KProcess). Does anyone know how I can get the pid's of such running
>processes without do a system call to grep through the output of ps ?
>
>
>
If you can make your daemon write a file that has the pid in it, that
seems to be the most portable way. Lots of daemons do this. (apache, etc)
-M
>> 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