Re: Herausfinden ob Prozess zu PID existiert

David Haller <[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
Hallo,

Am Tue, 05 Jul 2005, Thomas Moritz schrieb:
>Am Dienstag, 5. Juli 2005 19:31 schrieb Bernhard Walle:
>Eine andere Variante waere noch der Einsatz von kill () 
>mit Signal 0. [ kill -s 0 <pid> ]
>Vielleicht laesst sich das besser umsetzten? 

==== man 2 kill ====
       int kill(pid_t pid, int sig);
[..]
       If sig is 0, then no signal is sent, but error checking is
       still performed.

RETURN VALUE
       On  success,  zero is returned.  On error, -1 is returned,
       and errno is set appropriately.
ERRORS
[..]
       ESRCH  The pid or process group does not exist.  Note that
              an  existing  process  might be a zombie, a process
              which already committed termination,  but  has  not
              yet been wait()ed for.
CONFORMING TO
       SVr4, SVID, POSIX.1, X/OPEN, BSD 4.3
====

Insbesondere das "Conforming To" sieht gut aus.

-dnh

-- 
Weitere Ìble Beschimpfungen bitte selber einfÌgen, mehr fÀllt mir im
Moment nicht ein.          [Bernd Brodesser zu Henne Vogelsang in suse-talk]

-- 
Um die Liste abzubestellen, schicken Sie eine Mail an:
    [email protected]
Um eine Liste aller verfÃŒgbaren Kommandos zu bekommen, schicken
Sie eine Mail an: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.