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

List:       kde-devel
Subject:    Re: Controlling non-KDE processes
From:       Christian Nitschkowski <segfault_ii () web ! de>
Date:       2002-05-01 14:33:41
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Dienstag, 30. April 2002 20:12 schrieb Thiago Macieira:
> 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
Thanks.
I'll try that.

- -- 
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
GnuPG / PGP Key ID: 52FF1D09
search on wwwkeys.de.pgp.net or search.keyserver.net
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8z/zFb/QSzFL/HQkRAgxWAJkBYstqg2lKw4yQ4tci+8dP5U9/NQCbBpqx
fcCR13LGkGlIKGT108PZmik=
=fKix
-----END PGP SIGNATURE-----


>> 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