[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Controlling non-KDE processes
From: Thiago Macieira <thiagom () wanadoo ! fr>
Date: 2002-04-30 18:12:23
[Download RAW message or body]
Oswald Buddenhagen wrote
>> Any hints?
>
>yes, search the list archives (for ps, grep, bsd, sysv) - we had this
>question a few times during the last years. :)
>the problem is, that there is no standard across the unixes, so there is
>no simple answer to this question. if your app is not supposed to be
>portable, direct access to /proc is your friend.
The best way is to read the PID file the application writes and keep on
killing it with signal 0. If you don't receive the error ESRCH, it's still
running.
From the man page (kill(2)):
CONFORMING TO
SVr4, SVID, POSIX.1, X/OPEN, BSD 4.3, POSIX 1003.1-2001
--
Thiago Macieira - UFOT Registry number: 1001
thiagom@mail.com
ICQ UIN: 1967141 PGP: will create new keys. Erase the old ones!
Registered Linux user #65028
>> 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