kill () function

I’m trying to use Kill(pid, sig), I passed in 0 for sig, it didn’t kil the
proces with that pid, what’s the problem here? wrong sig #?

A signal number of 0 checks the validity of a certain pid, to see if it
exists. An exit code of 0 means that the specified process exists.


“ran zhang” <rzhang@vamcointernational.com> wrote in message
news:a7cj2j$fq2$1@inn.qnx.com

I’m trying to use Kill(pid, sig), I passed in 0 for sig, it didn’t kil the
proces with that pid, what’s the problem here? wrong sig #?

i tried with signal SIGTERM, it works,
I gues that’s the default signal sent when killing a processs.

Jake Thalacker <nospam@nospam.nospam> wrote in message
news:a7clag$h54$1@inn.qnx.com

A signal number of 0 checks the validity of a certain pid, to see if it
exists. An exit code of 0 means that the specified process exists.


“ran zhang” <> rzhang@vamcointernational.com> > wrote in message
news:a7cj2j$fq2$> 1@inn.qnx.com> …
I’m trying to use Kill(pid, sig), I passed in 0 for sig, it didn’t kil
the
proces with that pid, what’s the problem here? wrong sig #?
\